Recent Posts
-
Java – open and close hibernate sessions
This is how I get hibernate session and create a query HSession.getSession().createQuery("query here").executeUpdate()…… -
Java – how does HashSet handle hashcode()?
I'm trying to get a deeper understanding of Java util. Collection and Java util. Map, but I have some questions about …… -
Java – volatile variables that will never be assigned null will never contain null?
You can use the following concepts in java examples: public class X implements Runnable { public volatile Object x…… -
Java – get application shutdown event
How do I get to the application shutdown event? I want to get an application to save all unsaved operations, or displa…… -
Java – how to compile multiple proto files in a single command?
I have two proto files in a single directory, and I'm looking for a way to generate classes from these files in a sing…… -
String… Parameter in Java
See the English answer > varargs and the '...' argument 3 public void method(String... strs); What does "..." mean?…… -
Java – ActiveMQ connection denied
I tried to use ActiveMQ in my application, but when I tried to connect to the local host, an error continued to appear…… -
JSF – using javax faces. PROJECT_ STAGE
I want to understand the impact of the "javax. Faces. Project_stage" attribute of a JSF application The following link…… -
How do I automatically upgrade Java applications during startup?
I deployed a Java 1.6 application (~ 30) on several machines and started it as a Windows service My main problem is ma…… -
Java – the difference between row oriented and column oriented databases in processing information retrieval
Recently, I began to study HBase (a column oriented database) When I passed the source code, a problem kept popping up…… -
java. Lang. unsupported operationexception: the application must provide a JDBC connection
I wrote some code to test my hibernate configuration But I encountered this error message: java.lang.UnsupportedOperat…… -
Java – handles unhandled exceptions in the GUI
I mainly write a small tool for technical proficient people, such as programmers, engineers and so on Since these tool…… -
Java – using OSGi declarative services in the context of JUnit testing
I'm trying to figure out how to use JUnit to implement multi - bundle integration testing in OSGi By integration testi…… -
Java – JAXB, CXF: elements without objectfactory and @ xmlelementdecl
I am using JAXB and CXF to create a WSDL first web service I don't own WSDL, so I can't modify it I use ftp://ftp.ihe.…… -
Java 8 error: interface inherits abstraction and default
I'm trying to write a collection interface library using the new default method syntax in Java 8 to implement most of …… -
Java – the best way to avoid code duplication using fragments
I have an application ready to run in the Google play store, and now I'm executing the fragment Therefore, I already h…… -
Xdebug, how to disable a single Remote debugging of PHP files?
I am using the eclipse ide to remotely Xdebug There are some PHP scripts run by cron on the server So every cron that …… -
Java – how to create a curve between 2 points in 2D and return the points that generate the curve every d distance?
I'm not good at math I have two points in 2D, a (x1, Y1) and B (X2, Y2) I need to create a virtual path from point a b…… -
Java – how to obey the contract of equals() when deriving from an abstract class
Joshua Bloch wrote in his book "effective Java" that when derived classes add additional fields to checks, there is a …… -
Java EE – CDI injection failed on Maven embedded GlassFish plugin – org jboss. weld. exceptions. Deploymentexception: the dependency of weld-001408 type is not satisfied
We have a webapp that is currently being developed using Java EE 7, JSF 2.2 and GlassFish 4.0 There are two specific m…… -
Java – save data in an XML file
I have an application. I need to save data input as a user in an XML file at a specified location. I need to use java ……