Spring boot highlights

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

Spring transaction extension mechanism, 2021 popular whole network series

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

Spring Boot database connection pool HikariCP

preface 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: c ...

Posted on Tue, 23 Nov 2021 21:22:46 -0500 by Crow

Getting started with Servlet components

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

Section 3 of IntelliJ IDEA plug-in development: develop toolbar and Tab page to display stock market and K-line

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! ๐Ÿ˜œ โž catalogue 1, Foreword 2, Demand purpose 3, Case development ...

Posted on Mon, 22 Nov 2021 08:22:46 -0500 by davidklonski

Super detailed explanation of spring handle (basic configuration, based on xml)

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

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

Implement distributed locks based on Spring aop and redisson (set lockName flexibly)

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 ...

Posted on Mon, 22 Nov 2021 02:27:29 -0500 by TMX

Outsourcing human resource management system based on Spring MVC + Spring + MyBatis

Resource download: https://download.csdn.net/download/weixin_44893902/45600390 Exercise point design: fuzzy query, delete, add 1, Language and environment Implementation language: JAVA language.Environment requirements: MyEclipse/Eclipse + Tomcat + MySql.Use technology: Jsp+Servlet+JavaBean or spring MVC + Spring + mybatis. 2, Realiz ...

Posted on Sun, 21 Nov 2021 21:09:55 -0500 by beginPHP

Netty: WebSocket application, code demo

WebSocket 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