Java
-
Java – Maven replacement for Raven application plug-in (equivalent)
Are there any good Maven plug - ins for creating distributions zip? So we gradle's application plugin? More precise: …… -
Attach javapoet / javawriter to an existing class
I've been experimenting with code generation in annotation processors Consider the following code and add a constructo…… -
Abstract callbacks in java reflection methods
I have a class in jar and I want to call a method However, this method has parameters of abstract class, which is the …… -
Java – XML binding generation file cannot be compiled
I am developing a project involving Java backend with Delphi front end I tried to generate a Java - based XML binding …… -
Syntax errors in Java
See English answers > compiler error when declaring a variable inside if condition and no curry braces if ( year % …… -
Java – find all possible enum combinations
Is there an effective way to find all possible combinations between multiple enumerations in Java? Consider the follow…… -
Java – access accelerometer from JNI
I'm trying to make an Android application. I need to access the accelerometer in JNI Java code: mSensorManager = (Sens…… -
Java – mockito simulates a response class
When I try to simulate javax ws. When rs.core responds, I receive an error message: Why is that? Response response = M…… -
On Solaris using java 8, swing JButton does not render correctly
I have connected to Solaris 11.0 from a Windows machine I have set display as my machine I'm using java 8 Note: this w…… -
Java – use list > Member definition Abstract generic class
Even trying to propose a clean title is a challenge The basic idea is to define two superclasses: one for "child" item…… -
Java – open POM The eclipse editor does not open when XML is
I just installed Ubuntu 15.10 and eclipse Then I set up: update the site with: Indigo – http://download.eclipse.org/re…… -
Java – how to use asyncresttemplate to intercept asyncclienthttprequest?
I am using the spring asyncresttemplate helper class to develop asynchronous rest clients The client needs to send a t…… -
Java – bhsm servlet does not allow the browser to cache user names
I have a requirement that the value should not be cached in the server, and the browser should not be cached as a cook…… -
JavaFX CSS: custom functions
I want to know if there is a way to add custom functions to JavaFX CSS. My main purpose is to create a function to get…… -
Java – robolectric: the looper that runs the handler in my case
I have a very simple class. It has a handler. When it processes a message, it sends a new message again: public class …… -
Java – implement interface comparator
Assuming I have a simple interface, I want to compare based on some functions: interface Organism extends Comparable&l…… -
Java – performance degradation upgrade from hazelcast 2.5 to 3
Due to known (fixed) errors in hazelcast 2.5, we have determined that this will be the next upgrade candidate for our …… -
Java – spring general rest controller: parsing request body
I have the following controllers: @RestController @RequestMapping(value = "/{entity}",produces = MediaType.APPLICATION…… -
Java – gradle without main class?
Can I use gradle without specifying the main class? I want to create a library and use gradle to manage my dependencie…… -
Java: how can an impossible NullPointerException still occur?
I have just received the following error report about our software: java.lang.NullPointerException at java.util.Ar…… -
Java – how to unit test static resources provided by spring resourcehandlerregistry
I'm trying to unit test a new spring MVC project I have a service for index JSP home controller passed the test I am t…… -
Java – no log output on contextdestroyed using servletcontextlistener and slf4j
I'm trying to write a message to the logger (vaadin) servlet has stopped, which uses slf4j and log4j2 For this purpose…… -
By using Java util. Date may have underflow errors
This Code: package test; import java.util.Date; public class DateUnderflow { public static void main(String[] a…… -
Java – how to get intersections from shapes in elasticsearch
I have stored the path in elasticsearch as polygon Now that I have a circle (a point and a radius), I can check whethe…… -
Java – how to select the correct list implementation?
From this codereview answer, I also tend to use fairly large ArrayLists, and I don't see the logic to choose other lis…… -
Multithreading – Perl threads: how to make a producer?
I have a feature that runs very slowly I need to enter this function in the main part of the program So I want to do s…… -
Java – hibernate does not get the null value of the field in the database record
I use the following hibernate code to get data from the database SessionFactory factory = null; Session session = …… -
Java – MapReduce job in headless environment failed n times due to am container exception started by the container
When running a map reduction job in a headless environment in Mac OS X (for example, when running a job as a specific …… -
Java – can log4j restore integrity from disk?
We run several Java application servers and several applications here They all use log4j to log into the same file sys…… -
Java – conditional insertion using spring JPA / Hibernate
I am developing a project running in a cluster environment with many nodes and a database The project uses spring data…… -
Compile my project using java 7, but run my tests in gradle using java 8
I'm currently deploying my war to a WebLogic Server that supports Java 7, but I want to use Java 8.0 in my selenium an…… -
Java – prefix existing fields with M
I'm trying to make a structural replacement for my project I have a package of 100 classes, each containing 1 - 20 fie……