Spring transaction management

Spring transaction management 1. Business What is a transaction A set of operations either succeeded or failed Characteristics of transactions ACID Atomicity, a group of operations is a whole, either all successful or all failed, and cannot be separatedConsistency: the data is consistent before and after the transactionIsolation: multipl ...

Posted by romic on Mon, 06 Dec 2021 20:52:09 -0800

java multithreaded programming -- various locks -- exclusive lock VS shared lock

reference resources: https://tech.meituan.com/2018/11/15/java-lock.html https://www.cnblogs.com/jyroy/p/11365935.html Exclusive lock and shared lock are the same concept. Let's first introduce the specific concepts, and then introduce the exclusive lock and shared lock through the source code of ReentrantLock and ReentrantReadWriteLock. Exclu ...

Posted by Mega on Mon, 06 Dec 2021 20:43:48 -0800

Jenkins: parametric Construction: Branch | module | rollback | print log

@Jenkins notesNew task in Jenkins notes: https://blog.csdn.net/weixin_...Configure remote server for Jenkins notes: https://blog.csdn.net/weixin_...Jenkins: parametric Construction: multi branch | multi module | rollback | print log: https://blog.csdn.net/weixin_...Customize and build different parameters according to your own needsMulti branch ...

Posted by Aus on Mon, 06 Dec 2021 20:17:57 -0800

SpringBoot default connection pool HikariCP

HikariCPNow many companies are using HikariCP. HikariCP has also become the default connection pool of SpringBoot. With SpringBoot and microservices, HikariCP will be widely popularized.Next, Chen will take you to analyze why HikariCP can be favored by Spring Boot from the perspective of source code. The article directory is as follows:catalogu ...

Posted by Revan on Mon, 06 Dec 2021 19:18:50 -0800

MongDB Aggregation implements multi table Association query

Initial dataThe table data initialization statement is placed in the appendix of the article.Table corresponding Java entity class:public class Grade { String id; String gradeName; // The following are the properties used to associate query storage data Student student; List<Student> students; Contact contact; } ...

Posted by BarmyArmy on Mon, 06 Dec 2021 19:10:08 -0800

Introduction to basic programming knowledge of network programming framework t-io

As the most popular open source network programming framework software in China, t-io is famous for its simplicity and ease of use. Compared with netty, the same function is much simpler and the amount of code is greatly reduced. If you want to use t-io well, you should first learn some basic knowledge of t-io. This article mainly introduces th ...

Posted by Hipster on Mon, 06 Dec 2021 19:07:19 -0800

SpringBoot default connection pool HikariCP

HikariCPNow many companies are using HikariCP. HikariCP has also become the default connection pool of SpringBoot. With SpringBoot and microservices, HikariCP will be widely popularized.Next, Chen will take you to analyze why HikariCP can be favored by Spring Boot from the perspective of source code. The article directory is as follows:catalogu ...

Posted by spajetty on Mon, 06 Dec 2021 17:27:27 -0800

Java: realize human-computer interaction through Scanner module

preface Scanner module is almost everywhere. It establishes a communication channel between people and computers. Scanner means scanner in English. As the name suggests, it connects the data we input into the computer into the program variables we set, so that the variables become meaningful in subsequent operations. In a word, it is simple h ...

Posted by Catharsis on Mon, 06 Dec 2021 16:58:57 -0800

Java.Swing basics trilogy II (layout management)

FlowLayout layout manager Layout features Locate the components line by line, from left to right in the line, and wrap when one line is full.The default alignment is centered.Without changing the size of the component, the component is displayed according to the original size of the component.FlowLayout is the default layout manager for the P ...

Posted by mattgleeson on Mon, 06 Dec 2021 15:35:07 -0800

Heap related issues

We talked last time Heap and heap sorting This time, let's talk about heap related topics.1, Almost ordered array sorting1. Title DescriptionAn almost ordered array is known, which means that if the array is arranged in order, the distance of each element must not exceed K, and K is relatively small relative to the length of the array.Please se ...

Posted by narked on Mon, 06 Dec 2021 15:04:08 -0800