Java
-
Hadoop upload file function example code
Files on HDFS are uploaded to HDFS from local Linux by manually executing commands. In the real running environment, i…… -
Java method example of sending HTTP request through httpclient
Introduction to httpclient Httpclient is not a browser. It is a client HTTP communication implementation library. The …… -
Adapter pattern of design pattern in Java
Adapter pattern of design pattern in Java preface: The adapter pattern can apply a class or interface to another diffe…… -
Deep understanding of Java annotations and examples
Java annotation What is annotation? Annotations in Java are the metadata of Java source code, that is, annotations ar…… -
The Java program is packaged into a jar file with parameters and the instance code
Here, we use Apache commons cli to complete the target function. Without much nonsense, we can directly use the code R…… -
Spring’s programmatic and declarative transactions
Entrance (understand some basic concepts) Spring transaction properties (what are the properties of transactions?) We …… -
Detailed explanation of Java data structures and algorithms (ordered array and binary search)
1、 Overview Binary search is often used in ordered arrays, which can improve the speed of search. Today, we use seque…… -
On the recommended deployment of spring boot microservice project
If you have developed a spring boot program, you should know that the official Maven packaging plug-in of spring boot …… -
Detailed explanation of proxy pattern and decoration pattern examples of Java design pattern
This paper describes the proxy pattern and decoration pattern of Java design pattern. Share with you for your referenc…… -
Implementation of multi condition query of mongodb with Java
Requirement: in the mongdb client, we can easily implement multi condition query, so how to implement it when using ja…… -
Analysis and solution of faults caused by the same bean ID in spring
preface Recently, a colleague's bean configuration problem caused the production environment to write a large amount o…… -
Deep understanding of Java annotations and examples
Java annotation What is annotation? Annotations in Java are the metadata of Java source code, that is, annotations ar…… -
Explain in detail the role of servlet configuration load on startup
In servlet configuration, < load on startup > 1 < / load on startup > means to mark whether the container …… -
Detailed examples of Java custom exception classes
Detailed examples of Java custom exception classes Why write your own exception class? If there is no exception provid…… -
General steps of sending email in Java (example explanation)
General steps of sending email in Java 1、 Import the jar package of JavaMail: 2、 Create a test class to write the ma…… -
Java tree storage structure implementation example code
1、 Tree Different from linear structures such as linear table, stack and queue, tree is a nonlinear structure. A tree…… -
Spring boot uses admin to monitor applications
The monitoring interfaces provided by spring boot, such as: / health, / info, etc. in fact, in addition to the previou…… -
Solution to the problem of java thread deadlock
Solution to the problem of java thread deadlock [thread deadlock] Reason: two threads wait for resources locked by eac…… -
Performance comparison of Java template engine
From GitHub to JSP, thymeleaf 3, velocity 1.7, FreeMarker 2.3 23 comparing the performance of several mainstream templ…… -
Java method for obtaining source code of any HTTP web page
This example describes the source code of any HTTP web page obtained by Java. Share with you for your reference, as fo…… -
Detailed explanation of spring boot mybatis
This article focuses on the annotated example code of spring boot mybatis. For details, please refer to this article: …… -
Explain in detail how to use Maven to build a multi module project (picture and text)
Maven multi module project is applicable to some large projects. Through reasonable module splitting, code reuse is re…… -
Itemxt generates PDF and sets an example of header and footer
Itemxt generates PDF and sets an example of header and footer Example code: Engineering structure drawing: If you have…… -
Detailed explanation of the builder pattern example of Java design pattern
This paper describes the builder pattern of Java design pattern. Share with you for your reference, as follows: The bu…… -
Redis cache database query source code implemented by spring AOP
Application scenario We hope to cache the database query results in redis, so that we can directly get the results fro…… -
Explain in detail the thread support of executorservice, callable and future in JDK
Explain in detail the thread support of executorservice, callable and future in JDK 1. Code background: If there are t…… -
On local and global variables in Java
This paper introduces the local variables and global variables in Java as follows: 1. Local variables: Definition of l…… -
Java read and write parquet format data example code
This paper introduces how to read and write parquet data in Java and share it with you, as follows: Talk about the sch…… -
Spring security custom decision Manager
First, introduce the decision manager of spring. Its interface is accessdecisionmanager and its abstract class is abst…… -
On the scope of request, session and global session in spring learning
For the scope related to the web container, first configure it in the web container. Request scope Consider the follow…… -
On the running mechanism and error analysis of Java program
JVM (Java virtual machine) a specification for computing devices that can be implemented in different ways (software o…… -
Java method of uploading and downloading files through httpurlconnection
This paper introduces the method of uploading and downloading files through httpurlconnection in Java and shares it wi……