Java
-
Java Sudoku game full version sharing
This example shares the specific code of Java Sudoku game for your reference. The specific contents are as follows The…… -
Simple implementation of merge sorting of Java sorting algorithm
Algorithm description: for a given set of records, first merge every two adjacent subsequences with length of 1 to obt…… -
Method for implementing distributed application current limiting based on redis
The purpose of current limiting is to protect the system by limiting the speed of concurrent access / requests or requ…… -
Summary of pit records using spring data JPA
preface Basic introduction to spring data JPA: JPA was born to integrate the third-party ORM framework and establish a…… -
Detailed explanation of factory pattern implementation method of Java design pattern
This paper describes the factory pattern implementation method of Java design pattern. Share with you for your referen…… -
An example of base64 encryption and decryption in Java 8
First, encryption. Here I use the base64 class The second is decryption, The above example of base64 encryption and de…… -
Analysis of object class instances in Java
Q: what is the object class? Answer: the object class is stored in Java Lang package is the ultimate parent class of a…… -
Chat room function of java socket communication
This example shares the specific code of java socket chat room function for your reference. The specific contents are …… -
Java internal test class code details
There are four types of Java inner classes we generally use: general inner class, local inner class, anonymous inner c…… -
Using socket to realize the functions of network chat room and private chat
Use socket technology to realize the functions of network chat room and private chat. The specific contents are as fol…… -
Spring + mybatis returns the result through @ ResponseBody and solves the Chinese garbled code
Problem occurrence: Return via @ ResponseBody result: terms of settlement: In spring MVC Configuration in XML But afte…… -
Example code of printing spiral matrix by Java programming
Go straight to the code. Problems encountered in Tencent's online test last night. Spiral matrix refers to a matrix in…… -
Detailed explanation of switch selection statement code in Java
Syntax of switch structure (switch statement) Let's take a look at a code example with detailed comments, which you ca…… -
Java instantiation of an abstract class object method tutorial
preface Recently, in the process of learning, I found a problem. An abstract class cannot build the object through new…… -
Maven project refers to the method of external jar package
Problem Description: There is a Java Maven web project, which needs to introduce a third-party package GDAL Jar, but t…… -
Java binary tree path and code example
Given a binary tree, find the path where the sum of all nodes in all paths is equal to the given target value. A valid…… -
On the implementation process of Java garbage collection
This tutorial is to understand basic Java garbage collection and how it works. This is the second part of the garbage …… -
Analysis of inheritance test code in Java
Inheritance: you can construct a new class based on an existing class. By inheriting existing classes, you can reuse t…… -
Jcrontab simple introduction example details
This example shares a simple introduction to jcrontab for your reference. The specific contents are as follows Create …… -
Quickly understand NiO core components in Java
background knowledge Synchronous, asynchronous, blocking, non blocking First of all, these concepts are very confusin…… -
Maven project refers to the method of external jar package
Problem Description: There is a Java Maven web project, which needs to introduce a third-party package GDAL Jar, but t…… -
Four coding skills that Java programmers must know
If you were asked to optimize your Java code now, what would you do? In this article, the author introduces four metho…… -
Spring boot integrates Shiro and uses mongodb for session storage
preface Shiro is a permission framework. You can view its official website for specific use http://shiro.apache.org/ I…… -
Understanding of bio, NiO and AIO in Java
In the design of high-performance IO system, several terms and concepts often confuse us. The details are as follows: …… -
Bean life cycle of spring learning notes
preface In the last article, I mainly learned the configuration, injection and custom attribute editor of beans. Today…… -
Detailed explanation of log4j and AOP in spring MVC project
preface Log processing is a very important part of each project. Without logs, the controllability of the system will …… -
An example of generating a help document from a document annotation in Java
Example: Generate command Pay attention to person Java pathname should be correct. effect: Including index Html is the…… -
Broadcast form based on UDP in Java (example explanation)
UDP --- user datagram protocol is a simple datagram oriented transport layer protocol. UDP does not provide reliabilit…… -
Mybatis inserts one or batch inserts and returns instances with self growing primary key records
First of all, the version of mybatis that inserts a record and returns the primary key needs to be upgraded to 3.3 Ver…… -
Variant of binary search in Java
This example shares the variants of binary search in Java for your reference. The specific contents are as follows Gen…… -
Custom BufferedReader instance
The purpose of buffer establishment is to increase the transmission performance and make us transmit data faster The i…… -
A method of transforming a common web project developed in Java into a maven project
preface Maven is based on the project object model (project object model), a project management tool that can manage p……