包含标签:Java 的文章
-
New Java feature: can data types be thrown away?
A long time ago, when writing code, we should carefully consider the data types of variables, such as the following: H…… -
Spring boot (IV) template engine thymeleaf integration
1、 Introduction to thymeleaf Thymeleaf is a Java XML / XHTML / HTML5 template engine that can be used in web and non …… -
Java improvement class (VI) reflection and dynamic proxy (JDK proxy and cglib)
1、 Reflection 1. Get class object 2. Common methods of class // 此段代码为公共代码 interface People { int parentA…… -
General directory of spring boot series
1、 Reasons for the birth of spring boot series At school, I mainly learned Java and Net two languages. At that time, …… -
Spring boot (IX) swagger2 automatically generates interface documents and mock simulation data
1、 Introduction Under the current technology trend of separating the front end from the back end, the front-end engin…… -
Spring boot (VII) mybatis code automatic generation and auxiliary plug-ins
1、 Introduction 1.1 introduction to mybatis generator Mybatis generator is an official product of mybatis. It is used…… -
Spring boot (II) integrating JSP and production environment deployment
1、 Introduction One development scenario that I have to say about Java is web development, which is also one of the m…… -
Java improvement class (V) in-depth understanding of bio, NiO and AIO
Introduction: in this article, you will get: the performance difference between same / asynchronous + blocking / non b…… -
Three simplest implementation methods of timing tasks (super practical)
Scheduled tasks are particularly common in actual development. For example, the e-commerce platform automatically canc…… -
Rabbitmq series (II) deeply understand the working principle and simple use of rabbitmq
Deeply understand the working principle and simple use of rabbitmq Rabbitmq series Introduction to rabbitmq Before int…… -
Why does Ali recommend using longadder instead of volatile?
The above content has two key points: But words have no basis. Even if it is said by the lonely big man, we have to pr…… -
Never initialize an instance with double curly braces, otherwise it will oom!
Embarrassment is everywhere in life. Sometimes you just want to pretend, but some "old comrades" always inadvertently …… -
Spring boot (VIII) mybatis + docker + mongodb 4 x
1、 Introduction to mongodb 1.1 introduction to mongodb Mongodb is a powerful, flexible and easy to expand general-pur…… -
Spring boot (XII) unit test JUnit
1、 Introduction JUnit is an excellent open source Java unit testing framework, and it is also the most popular testin…… -
Six tough moves of current limiting, with detailed code and evaluation results
For the convenience of work, last year I rented out my house in the northern suburbs and moved to the southern suburbs…… -
Why do you recommend enumerations?
Enumeration is a new data type in JDK 1.5. Using enumeration, we can well describe some specific business scenarios, s…… -
Spring boot (XIV) rabbitmq delay queue
1、 Foreword Usage scenario of delay queue: 1 If the order is not paid on time, the order will be cancelled after 30 m…… -
How to prove that sleep does not release the lock, but wait releases the lock?
Wait locking example public class WaitDemo { private static Object locker = new Object(); public static void …… -
99% of programmers are using Lombok. Is the principle so simple? I got one too| Recommended collection!!!
I believe most people are familiar with Lombok, but little is known about its implementation principle and disadvantag…… -
Six methods of file writing, this method has the best performance
There are only two ways to operate files in Java: character stream and byte stream, and there are many implementation …… -
Several ways to improve string performance by 10 times! (source code + principle analysis)
String type is one of the most frequently used data types. So improving the running efficiency of string is undoubtedl…… -
Rabbitmq series (VI) complete solution of rabbitmq cluster architecture you don’t know
preface This paper will systematically introduce the characteristics, exception handling, construction and use of rabb…… -
Rabbitmq series (IV) rabbitmq transaction and confirm sender message confirmation – in depth interpretation
Rabbitmq transaction and confirm sender message acknowledgement - in depth interpretation Rabbitmq series introduction…… -
MySQL “passive” performance optimization summary!
When you are young, you don't know the pain of optimization. When you meet a pit, you know the difficulty of optimizat…… -
There are 7 ways to create thread pool. It is strongly recommended that you use it
According to Moore's law, the number of transistors that can be accommodated on the integrated circuit doubles every 1…… -
Key value expiration in redis
1. Expiration setting There are four ways to set the expiration time in redis: Let's take a look at the specific imple…… -
Redis transaction in-depth analysis and use
1. Preface Transaction refers to providing a mechanism to package multiple commands and execute them sequentially at o…… -
Spring boot (x) logback and log4j2 integration and log development history
1、 Introduction There are many well-known logs in Java, such as Jul, log4j, JCL, slf4j, logback and log4j2. What is t…… -
Station B true question: how to judge whether brackets are valid?
Today's question is not only the real question of BiliBili's written test this year, but also a classic interview ques…… -
This thread termination will lead to service downtime?
Before we start, let's look at what's wrong with the following code? public class ThreadStopExample { public stati…… -
Detailed explanation of 505 interview questions in “full analysis of Java interview”
"Full analysis of Java interview" is an e-book I released in gitchat. The book has a total of 150000 words and 505 Jav…… -
Dynamic diagram demonstration: two implementation methods of hand rolling stack!
Before we start, let's talk with friends about our plans for the later stage. In the following articles, we plan to wr……