I do try to build a factur-x using Mustang library. For minimum profile, a Buyer legal registration identifier is required. For this I build a trade party objec
I'm working on a Restful application with Spring Boot and I've defined my classes as below: class Organization { String name; } class Base { @JsonPrope
I'm trying to connect to an API that has a username and password with this code: try { URL url = new URL("https://url?UserName=username&Password=passwor
How can I create CASCADE ON UPDATE funcionality Database level using Hibernate annotations? Similar to "@OnDelete(action = OnDeleteAction.CASCADE)". I don't mea
What I need is to retrieve image tag using java api for Kubernetes. basically, what the command kubectl -n <NAMESPACE> get deployments.apps <DEPLOYMENT
In my Netty application I need to postpone the response until some data (which is going to be provided by other clients) be available. It's more like Producer-C
There is a class UserRequest class UserRequest { private Name name; private Address address; private Date dob; //getters and setters } This class is bu
I don't understand what went wrong with me. I'm trying to run Spigot Server Core 1.18.2, and I'm constantly having problems with this library. [19:21:50 INFO]:
I want to convert the animated webp files to gif file and looking for solution since couple of days but did not get any easy straight solution yet. I tried ffmp
I am having some trouble sorting 2 arraylists of mine which have the exact same data, one is received through my API and the other is parsed t
Spring 2.5.3 and Java 1.8 I want to send a json data to a mqtt topic but i cannot autowiring my Interface and i'm getting null pointer exception when i try with
Hi I'm using eclipse to export the jar file of map reduce program.When i try to run the jar file using the command hadoop jar WordCountdemo.jar /Demo2/WordCount
S = 1 + 1/2! + 1/3! + 1/4!..... Here is my code: import java.util.Scanner; public class question{ public static void main(String[] args)
Trying to update my project from Java 11 to Java 17 and got an unexpected error from Mockito in a specific test. mock(java.util.Random.class); Throws Feb 04, 2
After reading all the MDN docs on CORS, I am trying to fetch resources at a spring boot server at localhost:8080 from a ReactJS app at localhost:3000, yet i can
Does the assertEquals function result in? WIll this fail beccause assertEquals() requires tolerance value for double comparison? import java.util.*; class
Run the Main.main() method seems like a deadlock has occurred. I found out it can be fixed if replace notify() with notifyAll(). But why? Shouldn't the worst ca
I am trying to print all the paths from root to leaf in a tree, but having some issues collecting the path items. Consider the following graph: In my case thou
I'm loading an agent to Minecraft JVM and when I get all the loaded classes from the instrumentation, most of them are not there. My code looks like Class.forNa
I have a stream of objects similar to this previous question, however, instead of ignoring duplicate values, I would like to remove any values from that stream