1. springboot controller singleton In Spring, the controller is singleton by default, because singleton is not thread safe.
So we need to pay attention to the following points
Do not define member variables in the Controller, which may cause data confusion.In case it is necessary to define a non static member variable, set it to the multi ins ...
Posted on Wed, 24 Nov 2021 01:36:42 -0500 by Newro
Next, let's analyze the processing of connection resources by transaction operations, that is, the management of resources (resources attribute) by transaction synchronization manager in transaction processing.
2. Spring transaction processing
The TransactionSynchronizationManager#bindResource binding connects resources to the resources attri ...
Posted on Tue, 23 Nov 2021 22:40:53 -0500 by patrickrock
Now 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:
Chapter 1 Why do we need servlets?
What is a Servlet?
Broadly speaking, Servlet specification is a set of technical standards formulated by Sun company, including a series of interfaces related to Web applications. It is a macro solution for the implementation of Web applications. The specific Servlet container is responsible for provid ...
Posted on Mon, 22 Nov 2021 10:54:37 -0500 by whatever
Continue to adhere to the original output, click the blue word to pay attention to me
Author: Xiao Fu GeBlog: https://bugstack.cn
Precipitate, share and grow, so that you and others can gain something! 😜
2, Demand purpose
3, Case development
Posted on Mon, 22 Nov 2021 08:22:46 -0500 by davidklonski
IOC configuration details
1.1. Vessel overview
** ApplicationContext is the representative of Spring IoC container implementation. It is responsible for instantiating, configuring and assembling beans. The container obtains instructions about which objects to instantiate, configure, and assemble by reading the configuration metadata. Configur ...
Posted on Mon, 22 Nov 2021 07:17:50 -0500 by khf79
Read the EXCEL file data, and then call the third-party interface to re write the third-party data to the EXCEL file
Many documents and data are provided in the work, ranging from a few to tens of thousands. You can edit one by yourself and define it by static final. Once there are too many, you have to use the read access method, which is eff ...
Posted on Mon, 22 Nov 2021 02:47:34 -0500 by hussain
1. What you should already know when reading this article
Spring boot framework is basically used (I use spring cloud distributed framework here)Basic principles of aopUnderstand redisson distributed locking mechanismAdequate knowledge of reflection and annotation usage
If you don't know enough about the above content, it will be difficult t ...
Why use the advanced version? The new technology must have solved the technical problem
Defects of Http protocol:
The communication can only be initiated by the client, which requires a kind of ability that the server can actively push to - websocket
**websocket: * * this is a two-way communication capability, also known as ...
Posted on Sun, 21 Nov 2021 17:52:54 -0500 by manalnor