>>>> 😜😜😜 Github: 👉 github.com/black-ant CASE Backup: 👉 gitee.com/antblack/ca…

A. The preface

There are many nodes in Spring that can be used for complex customizations, and this series is to take stock of those core customization points and what benefits they offer

Purpose of the article

  • Organize main process and provide flow chart for quick understanding
  • Comb the actual use of the operation

👉👉👉👉 The summary document will be updated and revised continuously

Ii. Overall IOC process

!!!!!!!!!! This is a bit compressed @nuggets!!

Principle of the Spring IOC

Review SpringIOC: Resource and Document system

SpringIOC: ApplicationContext

Count SpringIOC: InitializingBean for Bean creation

Review SpringIOC: Property injection for Bean creation

Review SpringIOC: Bean creation main process

3

3.1 the IOC points

Loop dependent part

SpringIOC: Circular dependencies

// Description: TODO added later, see the address above

Copy the code

3.2 AOP part

AOP’s initiation process

Taking stock of AOP: AOP initialization

The creation process of Aop

AOP inventory: Creation of an AOP proxy class

The Aop interceptor class does the interception

AOP inventory: Creation of INTERCEPtor objects for AOP

AOP intercepts the main process

Taking stock of AOP: AOP intercepts and method calls

// Description: TODO added later, see the address above

Copy the code

4. SpingMVC part

Review of SpringMVC: THE MAIN flow of MVC

4.1 Annotation scanning and request interception

// Description: TODO added later, see the address above

Copy the code

4.2 Method Mapping

// Description: TODO added later, see the address above

Copy the code

4.3 Attribute Conversion

// Description: TODO added later, see the address above

Copy the code

5. SpringBoot

TODO: Flowchart supplement later

SpringBoot: Automatic assembly

SpringBoot: Factories process

Check SpringBoot: Main process of Application

Check SpringBoot: Listener

SpringBoot: Application configuration read process

conclusion

This is a long-term update of the document, the follow-up will supplement the details and correct the understanding of the error, as well as optimize the typesetting, I suggest an eye!!

Appendix – Document address

Stage 2: Customized point series (in writing)

This series is mainly designed in the following parts:

  • Custom processing of BeanDefinition
  • Custom processing of BeanFactory
  • Custom processing of factoryBeans
  • Deep use of BeanPostProcessor
  • What can BeanAware do
  • Customize the Spring container
  • What can Spring do when it starts
  • InitializingBean process
  • DisposableBean process