Java
-
Java NiO instance UDP sending and receiving data code sharing
In the NiO package of Java, there is a class dedicated to sending UDP packets: datagramchannel. UDP is a connectionles…… -
Service number payment code example of Java wechat payment
Java WeChat paid the service number payment to achieve, the Java WeChat payment SDK and Demo online are basically wate…… -
Java exception class and its subclasses (example explanation)
If in C language else... To control exceptions, all exceptions in the Java language can be represented by a class. Dif…… -
23 design patterns (3) Java prototype pattern
23 design patterns Part 3: Java prototype pattern definition: Create a new object instance by copying an existing obje…… -
23 design patterns (6) Java Decorator Pattern
23 design patterns Part 6: Java Decorator Pattern definition: Dynamically extend the function of an object without cha…… -
23 design patterns (5) Java adapter pattern
23 design patterns Part 5: Java adapter pattern definition: Convert the interface of a class into another interface th…… -
On the three states and transformation relationship of Java entity objects
In the latest hibernate document, four states are defined for hibernate objects (originally three states, and basicall…… -
Insertion sorting of Java data structures
Insert sort is to insert the elements to be sorted into an ordered list. A very vivid example is to grab a poker card …… -
Close the hook through JDK source code analysis
shutdown hook When users close the application, they need to clean up the aftermath, but the problem is that some use…… -
Spring boot email details
The spring framework uses the javamailsender interface to provide a simple abstraction for sending mail, and spring bo…… -
Learn InputStream through JDK source code
survey This article mainly introduces the relevant contents of learning InputStream through JDK source code. JDK provi…… -
23 design patterns (7) Java proxy pattern
23 design patterns Part 7: Java proxy pattern definition: Provide a proxy for other objects to control access to this …… -
Detailed explanation of the implementation principle of Java Concurrent waiting condition
preface The implementation mechanism of exclusive lock and shared lock was introduced earlier. This article continues …… -
Fastjson is responsible for the conversion between JSON format strings, JSON objects and JavaBeans
Fastjason mainly uses the following three classes for parsing JSON format strings: JSON: the parser of fastjson, which…… -
Introduction and download address of common APIs of fastjson (recommended)
Fastjson is a high-performance and fully functional JSON library written in Java language. It improves the performance…… -
23 design patterns (4) Java generator pattern
23 design patterns Part 4: Java generator pattern definition: Separate the construction of a complex object from its r…… -
Quickly understand composite patterns in Java design patterns
Composite pattern is a common design pattern (but I think it is a little complex). It is also called composite pattern…… -
Sample code for Java to implement a simple RPC framework
1、 Introduction to RPC RPC, fully known as remote procedure call, is a computer communication protocol. It allows rem…… -
23 design patterns (2) Java factory pattern
23 design patterns Part 2: Java factory pattern definition: Factory pattern is one of the most commonly used design pa…… -
Function of Java programming interface call and code sharing
Many junior Java programmers are confused about the meaning of the interface. I don't know what the interface does and…… -
Detailed explanation of Java httpurlconnection usage
This example shares the use of Java httpurlconnection for your reference. The specific contents are as follows This in…… -
Java multithreaded interrupt code
1、 There are three main methods to terminate threads in Java: ① The thread exits normally, that is, the execution of …… -
Function description of sending mail using components in spring framework
The spring framework was created due to the complexity of software development. Spring uses basic JavaBeans to do thin…… -
Complete code example of red black tree implemented by Java algorithm
Red black tree definition Red black tree (English: redcblack tree) is a self balancing binary search tree. It is a dat…… -
Spring security developed in Java realizes the authentication function based on mongodb
This paper describes the spring security developed by java to realize the authentication function based on mongodb. Sh…… -
Detailed explanation of spring boot log control
The log processing of spring boot is completely consistent with our usual log processing through logback XML for log m…… -
Basic use of fastjason in Java
Fastjson is a high-performance, fully functional and fully supported Java language http://json.org Standard JSON libra…… -
Detailed explanation of reverse engineering steps based on mybatis
I personally feel that this is the simplest of the detailed steps of generating reverse engineering using mybatis. Alt…… -
23 design patterns (1) Java singleton pattern
23 design patterns Part 4: Java singleton pattern definition: Singleton pattern is a common software design pattern. I…… -
23 design modes (8) Java appearance mode
23 design patterns Part 8: Java appearance pattern definition: Provide a consistent interface for a set of interfaces …… -
Java multithreaded programming example
I Relevant knowledge: Knowledge of Java multithreading programming: (1) Operate on the same quantity (2) Operate o…… -
Detailed explanation of three injection methods of spring bean
There are three ways to configure dependency injection for a bean in the spring container: Field injection is the most……