包含标签:Java 的文章
-
Fully understand CAS mechanism in Java
preface When I saw the Java lock mechanism, I accidentally saw the word CAS. Then I looked for CAS in Baidu. I read ma…… -
Analysis of common methods of appending content to the end of file in Java
This article describes the common methods of appending content to the end of the file in Java. Share with you for your…… -
Kryo serialization and deserialization usage examples
Kryo is a fast and efficient Java object graphics serialization framework, which is characterized by performance, effi…… -
Kryo framework usage code example
Source of kryo framework has been moved to https://github.com/EsotericSoftware/kryo , enter this page, and then click …… -
Implementation methods of several common comparators in Java
In Java, the sorting of object arrays is often involved, so it involves the comparison between objects. Generally, the…… -
Mybatis L2 cache implementation code
L2 cache needs to be manually configured and enabled, as follows: Set enable L2 cache / mybatis02 / config / mybatis-c…… -
Learning and using servlet listener (3)
This article shares the specific learning contents of servlet listener for your reference. The specific contents are a…… -
Common problems based on Multithreading concurrency (detailed explanation)
I. overview 1.volatile Ensure that once the shared data is modified, it will be synchronized to the shared memory (hea…… -
Implementation code of readwritelock read-write separation of Java multithreading
In multithreaded development, there is often a situation where we want to separate reading and writing. For the read a…… -
Use recursion to delete all child nodes of the tree structure (Java and MySQL Implementation)
1. Business scenario It has the following tree structure: + - 0 + - 1 + - 2 + - 4 + - 5 + - 3 If you delete a parent n…… -
Explain in detail the spring boot + mybatis + freemaker framework built in MyEclipse
1. Create a maven project in MyEclipse. File>New>Maven Project: Check the red part in the figure and click next…… -
Example of httpclient implementation calling external project interface tool class
Examples are as follows: The above example of httpclient calling external project interface tool class is all the cont…… -
Java code for connecting to MySQL database
This example shares the specific code of Java connecting to MySQL database for your reference. The specific contents a…… -
Switching of multiple data sources in Java automated testing (example explanation)
Data driven is a very important concept in automated testing. When the data is separated from the script, in the face …… -
On the advanced usage of JUnit 4 unit testing
JUnit unit test framework is a necessary test tool for Java program development. Now JUnit 4 is the most commonly used…… -
Use of httpclient in HTTP protocol interface test (detailed explanation)
In the interface test of HTTP protocol, get request and post request are most used. The post request includes form par…… -
Detailed explanation of Shiro session expiration time in spring boot actual combat tutorial
preface As we all know, in spring boot, setting the session expiration time only needs to be in application Add server…… -
java. Lang. void class source code analysis
When viewing the ThreadGroup in the source code, I see a piece of code, which is as follows: This method is used to ch…… -
Java quicksort (instance)
Quick sort ---------------------------------------------------------------------- thought As shown in the figure above…… -
Detailed explanation of Java synchronization function code
summary The lock of the synchronization function is this, and the lock of the static synchronization function is the b…… -
Java map stores the array and takes out the value code
There are four main methods to obtain the value of map. These four methods are divided into two categories. One is to …… -
Analysis of internal storage mode of map in Java
Map, that is, map, also known as key value pair, has a key and a value. For example, in groovy language, def map = ['n…… -
Explain the essential difference and relationship between hashcode () and equals ()
In the process of learning Java and making examples according to videos, I have a deeper understanding of the two meth…… -
Java API of HBase access mode
Access mode of HBase 1. Native Java API: the most conventional and efficient access method; 2. HBase shell: the comman…… -
Graphic tutorial for building Java runtime environment
1. Build a Java running environment. For beginners, you can mainly download and install JDK, and the windows operating…… -
Servlet download file implementation code details (V)
This example shares the specific code of servlet download file for your reference. The specific contents are as follow…… -
Detailed explanation of Java enumeration usage
In actual programming, there are often such "data sets", their values are stable in the program, and the elements in t…… -
How Java uses reflection to find classes using specified annotations
preface I'm a little empty recently. I want to write an annotation like the annotation in spring, and then I hope to f…… -
Struts 2 configuration static resource code details
The struts 2 framework has two core configuration files: struts XML and struts 2 default properties file default Prope…… -
Servlet forwarding, including detailed explanation (VII)
This paper introduces servlet forwarding and servlet inclusion for your reference. The specific contents are as follow…… -
On guard thread and user thread in Java
Java threads are divided into two types: daemon threads and user threads (user thread), the main function will be call…… -
Fetch = fetchtype in hibernate Lazy lazy loading failure handling method
For this lazy loading problem, the final approach is to use a hibernate support class provided by spring. Its main mea……