Java
-
On the method of using Maven plug-in to build docker image
This article introduces the method of using Maven plug-in to build docker image and shares it with you, as follows: to…… -
Generator configuration method of Hibernate mapping file ID
The optional < generator > child element is the name of a Java class, which is used to generate a unique identif…… -
On data exchange, cache and synchronization of JSON
JSON lightweight data exchange format Compared with XML, JSON has faster parsing speed and smaller documents. JSON for…… -
Basic instance analysis of java thread
There are two ways to establish threads in Java: inheriting the thread class and implementing the runnable interface. …… -
Simple instance of spring IOC and scope attribute resolution of bean
IOC (inversion if control) - inversion of control is one of the two core technologies of spring. IOC is generally divi…… -
Example analysis of high cohesion and low coupling rule
Definition: an object should have the least understanding of other objects. The origin of the problem: the relationshi…… -
How to encapsulate request parameters in struts 2
As we all know, the action class of struts 2 can obtain all relevant values through attributes, such as request parame…… -
Detailed explanation of memory leak caused by substring method in Java
Out of memory: Generally speaking, there is not enough memory. For example, creating a large object in an infinite loo…… -
Java implementation of MySQL database operation based on JDBC
This paper describes the method of operating MySQL database based on JDBC in Java. Share with you for your reference, …… -
On the difference between spring singleton bean and singleton pattern
The difference between spring singleton bean and singleton pattern is that their associated environment is different. …… -
Java socket programming heartbeat package creation instance analysis
1. What is a heartbeat pack? Heartbeat packet is a self-defined command word that regularly notifies the other party o…… -
Java batch files are compressed, exported and downloaded to the local sample code
It mainly uses org apache. tools. zip. Zipoutputstream is a zip stream. Here, take EXECL as an example. Idea: first wr…… -
Java socket programming server response client instance code
The client information is read through the input stream, and the corresponding time is realized through the output str…… -
Detailed explanation of basic concepts of Java language annotation
1、RetentionPolicy. Source: the annotation is only kept in the source file. When the java file is compiled into a clas…… -
Simple instance of spring IOC and scope attribute resolution of bean
IOC (inversion if control) - inversion of control is one of the two core technologies of spring. IOC is generally divi…… -
Code details of Apache commons Toolset
Apache commons contains many open source tools to solve the problems often encountered in programming and reduce repet…… -
Detailed explanation of spring automatic assembly and scanning annotation code
1 @ r of JavaBean_ 404_ 1860@ Automatic injection to reduce the configuration information of XML files. 2 spring scan …… -
Explain how spring boot admin uses Eureka monitoring service
preface I'm just free recently. Let's learn how to build a spring boot admin environment. Many pits were encountered. …… -
Code analysis of spring interceptor handlerinterceptor interface
Spring's handlermapping supports interceptors. Interceptors must implement the handlerinterceptor interface, which con…… -
Java dynamic proxy (design pattern) code explanation
Foundation: need to have the idea of object-oriented design, polymorphism and reflection; With the emergence of Java d…… -
On the application of custom annotation in spring
1. Java custom annotations and spring As a kind of metadata information of program elements (classes, member variables…… -
[spring boot] a method to quickly build a spring boot micro framework
Spring boot is a framework for quickly building an environment. Its design concept is to reduce XML configuration as m…… -
-
How to use hashcode and equals in Java
preface As we all know, Java Lang. object has a hashcode () and an equals () method, which play an important role in s…… -
Introduction and example summary of Java programming reflection mechanism
This article illustrates the usage of Java programming reflection mechanism. Share with you for your reference, as fol…… -
Introduction to struts 2 (build environment, configuration and examples)
Learn the introduction course of struts 2 on the website, and download the latest struts-2.5 on the official website 5…… -
Detailed analysis of Java comparison problems
The comparison problem in Java is a very basic and confusing problem. Today, I will summarize and sort out several err…… -
Detailed interpretation of IO flow in Java
A stream is a series of data. When there is data interaction between different media, Java uses stream to realize it. …… -
On the urgent loading problem of Hibernate (multiple foreign key Association)
The database structure is as follows Foreign key member in strategy_ ID (associated member table) foreign key strategy…… -
Java language describes the correct implementation of redis distributed lock
Distributed locks are generally implemented in three ways: 1 Database lock; 2. Redis based distributed locks; 3. Distr…… -
Java phantom JS completes the HTML image output function
Output HTML web pages as pictures @ h with phantomjs_ 502_ 1@ 1. Background @ h_ 502_ 1@ How to generate a map in the …… -
Swing jtextarea scroll bar and text zoom effect
This example shares the specific code of swing jtextarea scroll bar and text scaling for your reference. The specific ……