Detailed explanation of Spring AOP source code

The two powerful features of Spring are IOC and AOP. We know that the process of implementing AOP in Spring is processed in the Spring Bean post processor and executed during Bean initialization. Next, let's take a detailed look at how the source code does All methods that generate proxy objects will be delegated to invocationhandler For pro ...

Posted by forcerecon on Thu, 16 Dec 2021 15:43:35 +0100

Deep analysis of Spring MVC principle

1, spring mvc features 1. Review the servlet and jsp execution process Process Description: Request ServletProcessing business logicSet business Modelforward jsp Servletjsp Servlet parsing encapsulates html return 2. spring mvc features: spring mvc is essentially handled by Servlet and encapsulated on its basis, which simplifies the ...

Posted by bdamod1 on Thu, 16 Dec 2021 13:26:51 +0100

Springboot MVC auto configuration principle

catalogue 5. MVC automatic configuration principle 5.1 official website reading 5.2 content negotiation view parser 5.3 converter and formatter 5.4 modify the default configuration of SpringBoot 5.5 take over of spring MVC 5. MVC automatic configuration principle 5.1 official website reading Before writing the project, we also need to ...

Posted by Ali_baba on Thu, 16 Dec 2021 13:04:29 +0100

Spring takes you through the Bean life cycle (singleton and prototype)

Bean life cycle (singleton and prototype) About Bean lifecycle: Spring chooses the management mode according to the scope of the Bean. For a singleton scoped Bean, spring can accurately know when the Bean is created, when initialization is completed, and when it is destroyed; Spring is only responsible for creating beans with prototype scope. ...

Posted by jordy on Thu, 16 Dec 2021 09:29:30 +0100

Spring learning notes

1,Sping 1.1 INTRODUCTION Spring: Spring - > brings spring to the software industry In 2002, Rod Jahnson first launched the Spring framework prototype interface21 framework. On March 24, 2004, the Spring framework was redesigned based on the interface 21 framework and released the official version of 1.0. It's hard to imagine Rod Johnso ...

Posted by maxelcat on Thu, 16 Dec 2021 03:14:42 +0100

@Async sends SMS asynchronously

preface Recently, in the order module, users need to make an appointment after purchasing service products. After the appointment is successful, they send reminder messages to merchants and users respectively. Considering the time-consuming situation of sending text messages, I wanted to use asynchronous methods to execute them, so I saw Sprin ...

Posted by crazy_carl on Thu, 16 Dec 2021 02:36:24 +0100

[Dead Spring 15/43] --- Summary of IOC initialization for IOC

[Spring 15/43] - Summary of IOC Initialization for IOC https://www.cmsblogs.com/article/1391375372632854528 text The first 13 Posts analyze the whole initialization process of IOC from the source level, and this one summarizes and concatenates these. As mentioned earlier, the initialization process of an IOC container is divided into three s ...

Posted by ltbaggz on Wed, 15 Dec 2021 22:46:49 +0100

[Spring] proxy mode -- dynamic proxy

Agent mode -- dynamic agent Static proxy: the proxy class must exist, Dynamic agent: when the program is running, the agent class is dynamically generated according to the object to be represented. Type: 1. Dynamic agent based on JDK 2. Dynamic agent based on CGLIB 1 dynamic agent based on JDK Static, directly using Proxy call newProxyInsta ...

Posted by ojsimon on Wed, 15 Dec 2021 18:22:58 +0100

Old saying: implementation of multi data source component based on annotation springboot+mybatis

Usually, in business development, we use multiple data sources. For example, some data exist in mysql instances and some data are in oracle databases. At this time, the project is based on springboot and mybatis. In fact, we only need to configure two data sources according to dataSource - SqlSessionFactory - SqlSessionTemplate can be configur ...

Posted by NSH on Wed, 15 Dec 2021 16:58:19 +0100

The old question: how to customize the starter with one click in Spring Boot?

Spring Boot starter We know that Spring Boot greatly simplifies the initial construction and development process of the project, which are completed through the starter provided by Spring Boot. Pinda general permission system is developed based on Spring Boot, and some basic modules are starters in essence, so we need to have a comprehensive a ...

Posted by DeltaRho2K on Wed, 15 Dec 2021 16:05:04 +0100