Java
-
Java – Tomcat permission denied when trying to write to a file
I'd like to send a zip through the Tomcat server But when I try to visit http://localhost:8094/fetna -At project rest …… -
Java – unlimited when trying catch
I encountered a problem when I tried to execute a try catch statement in a loop I ask the user to input letters first …… -
Is it possible to resolve ambiguity through annotations in Java
See English answers > method overloading for null argument 7 void bla(Integer a); void bla(String a); Basically, wh…… -
Java – unit testing: calling @PostConstruct after defining simulation behavior
I have two classes: public MyService { @Autowired private MyDao myDao; private List<Items>…… -
Java – add a property file on the classpath
I am building a spring independent application based on spring boot I want this application to read its properties fro…… -
Java – a bufferedimage is grayed out
I tried to gray the buffered image (instead of converting it to gray, just add gray at the top) Now I do this by using…… -
java. Lang. illegalargumentexception: undefined filter parameter [P1]
I'm trying to execute hibernate filter This is my POJO course: @Entity @Table(name="flight") @FilterDef(name="f1",para…… -
Java – why do I use random run to get the same number?
I'm following a book and in this Code: Random rand = new Random(47); int i,j,k; j = rand.nextInt(100) + 1; …… -
Java – build error: Jack needs build tool 24.0 0 or later
I use the RX Library in my android project, and for some reason, I need to build Gradle as: apply plugin: 'com.android…… -
Java – dagger 2: error getting multiple instances of the same object using @ named
How can I get multiple instances of the same return type like a cursor For example:- Module @CursorScope public class …… -
Java – Android NFC device owner configuration: send custom attributes Is it possible?
I am developing an application and have the following problems When using NFC for device owner configuration, I want t…… -
Java – textview confirmation location
I'm trying to make an Android code that provides different work for each button So when the user presses button 1, the…… -
java – CompletableFuture vs Spring Transactions
idea I have a handler that receives a list of items and processes them asynchronously using an external web service Th…… -
Java transform format String
I'm still a novice in Java. I wonder if there is any way to format double without rounding? double n = 0.12876543; Str…… -
Java – how to find minimum and maximum values by integer sequence?
I'm new to coding. I try to use math Min and math The max method finds the minimum and maximum values of an integer se…… -
Java – race conditions occur even after synchronization
I'm trying to run multiple threads I have obviously obtained the competitive conditions and can solve it as follows: f…… -
Parallelism in rxjava – filters
I have some very simple code and read a bunch of strings & application filters I want the filter to run on multipl…… -
JavaFX: creating custom data attributes for nodes
I currently need custom attributes, which I can get at any time Is there any way to create custom data attributes for …… -
JavaDocs throws illegalargumentexception
I am using IntelliJ idea. When I start generating JavaDocs (through tools - > generate Javadoc), I will throw an il…… -
Java – determines the type of object
If I have this situation: interface Node {} class EmptyNode implements Node {} class NotEmptyNode implements Node {}…… -
Sort – sort a table across multiple comparator items
I need to use multiple comparator objects in Java 8 to sort the list of item objects The application creates a compara…… -
Java – how to view the class name that contains the actual code
package a; package a; public class A { public String toString() { // return "I am an a.A"; is too primitive ;) …… -
How to save UUID as binary in Java (16)
I have a table TestTable. The column ID is binary (16) and the name is varchar (50) I have been trying to store ordere…… -
Java – how to set the default media type for spring data rest?
From the repository restconfiguration, I can see setting up spring data. rest. Default media type = Application / JSON…… -
Java – @ reference session displays an unsatisfactory error
I'm using the sling servlet Because I use javax jcr. Session as a reference How can I solve this problem? Solution jav…… -
Multithreading – what is the best Scala thread safe way to write to bufferedwriter?
I have a simple way to write a line of data to a file followed by a new line executed asynchronously def writeToFile(b…… -
Execute Java callback on new thread
In this project, the manager performs event queuing and returns the result of the event using a callback (the callback…… -
Use list Addall add list Compile time error extending baseClass > to another
In this code, the last line (LIST1. Addall (List2);) Build compile time error I do realize that if this is allowed, yo…… -
Java – can spring restdocs generate real-time documents like swagger?
As a developer, I prefer spring restdocs But as a user of documents, I find swagger real-time documents very attractiv…… -
Replace all tags except one with regexp in Java
I have the following questions I want to delete all substrings starting with < And ends with > except substring …… -
Distribute the list evenly into Java’s child lists
I want to distribute the list evenly into a given number of sub lists SL1 -> {1,2,3,4} SL2 -> {5,6,7} SL3 -> …… -
Java – the synchronization in the constructor makes it happen before
I have a question about how to ensure that objects are thread safe through the JAVA memory model I've read a lot that ……