Java
-
Java optional class usage sharing
Optional is defined as a container class in Java, more specifically, a container with only one element. container obje…… -
Detailed explanation of session addition, deletion, modification and query operation code in Hibernate
Put the three state transition diagram here to facilitate the function of the analysis method: 1. Save() method of ses…… -
Example analysis of Java recursive algorithm
The basic idea of recursive algorithm design is: For a complex problem, decompose the original problem into several re…… -
Spring boot uses logback, logstash and elk to record log files
Under spring boot, try to log to logstash using log4j, and add log4j in Src / main / resources directory The custom ou…… -
How to dynamically inject bean instances in spring
preface There are many ways to inject instances in spring, but due to the different initialization order, the annotati…… -
Java implements a simple timer code analysis
We see a lot of timing functions on mobile phones, such as regular garbage cleaning, alarm clock, etc Timer object is …… -
Example explanation of JXL exporting data to excel
advantage: JXL supports Chinese very well. The operation is simple. The method depends on the name. JXL is a pure Java…… -
Implementation of network data cache interceptor Interceptor Based on okhttp3 (supporting retrofit)
Preface: some time ago, when developing the app, it often occurred that due to the user's equipment environment, the d…… -
Complete example of minesweeping game and improved version implemented by Java Swing
This paper describes the minesweeping game and its improved version implemented by Java swing. Share with you for your…… -
Implementation of network data cache interceptor Interceptor Based on okhttp3 (supporting retrofit)
Preface: some time ago, when developing the app, it often occurred that due to the user's equipment environment, the d…… -
Maven, mybatis and spring MVC integration and construction of Java framework (picture and text)
This paper mainly introduces maven, mybatis and spring MVC integration and construction of Java framework (picture and…… -
Complete example of Snake game implemented by Java Swing framework
This article describes the greedy Snake game implemented by Java Swing framework. Share with you for your reference, a…… -
Summary of problems encountered in spring FTP upload and download tool class
preface Recently, I need to interact with the FTP server in the project. I found tools for FTP upload and download on …… -
Redis and SSM integration method (mybatis L2 cache)
SSM + redis integration The SSM framework has been built before, and code copying is no longer done here. Redis is mai…… -
Detailed explanation of abstract classes and methods in Java programming
Common knowledge points of abstract classes and methods: (1) Abstract classes are inherited classes, and subclasses mu…… -
Complete code example of TCP communication in Java network programming
1、 Overview Socket class is the basic class for Java to perform client TCP operations. This class itself uses code to…… -
Find the farthest leaf node of binary tree (example explanation)
During the interview, I came across a question: how to find the farthest leaf node of a binary tree and the distance f…… -
Java string and date type conversion tool class
The common methods of string to date and date to string are as follows The above is the whole content of this article.…… -
Java implementation code example of K-means clustering algorithm
1. Introduction K-means clustering algorithm randomly selects K objects as the initial clustering center. Then, the di…… -
Java method for obtaining timestamp accurate to seconds
This example shares the specific code of Android Jiugongge picture display for your reference. The specific contents a…… -
Detailed explanation of dateutils time tool class in Java
This example shares the specific code of dateutils time tool class for your reference. The specific contents are as fo…… -
Quickly understand various annotations in spring
Annotations in spring can be roughly divided into two categories: 1) Spring's bean container related annotations, or b…… -
Simple web page screenshot function example implemented in Java
This paper describes the simple web page screenshot function implemented in Java. Share with you for your reference, a…… -
How should final function on variables, parameters, methods and classes in Java be handled
The function of modifying parameters with final in Java methods Adding the final keyword in front of method parameters…… -
Solution to automatically bind list with spring MVC parameters
Recently, I encountered a problem that I need to pass in a group of objects in the project. In the past, only one obje…… -
Maven + Alibaba cloud creates a central warehouse for domestic images (available for personal testing)
As we all know, one of the headaches in wall development is that the connection speed of Maven warehouse is too slow. …… -
A simple introduction to spring MVC integrated tiles framework (Maven)
preface This tutorial is based on spring MVC, which is currently the best MVC framework. Since the release of spring v…… -
Detailed explanation of Chinese and English time format conversion in Java simpledateformat
Simpledateformat is a concrete class that formats and parses dates in a locale dependent manner. It allows formatting …… -
Solution to spring websocket 404 error
Recently, when learning spring websocket, write the code according to the example in spring in action, and the runtime…… -
Detailed explanation of mybatis annotation configuration of mybatis learning notes
Java API Now that you know how to configure mybatis and create a mapping file, you are ready to improve your skills. M…… -
Example explanation of Java advanced virtual machine loading mechanism
The JVM loads binary streams, which can be Class file can also be in other forms. If it is designed according to the l…… -
Detailed explanation of Java NiO server-side development
1、 Introduction to NiO class library 1. Buffer Buffer is an object that contains some data to be written and read. In……