Bean stuff

Preface


Every time I get a weird name, I’m very entangled. First, I want to please myself, but the number of visits to such a name is not high. Anyway, what can I do with more visits, it’s the most important thing to be happy~~ Today is still Discuss the charm of spring around the container of spring management bean

mind Mapping


Write picture description here

The core of Sring is IOC and AOP. IOC is inseparable from the container that contains beans. The role of the container is to manage the bean, including the creation, configuration, assembly and management of the bean’s life cycle. It manages application components through DI. The relationship between.

Spring containers can be classified into two types: one is bean factory, and the other is application context. The support provided by the former is too single, so the latter is widely used.

The life cycle of a bean in a Spring container is more complicated. As shown in the figure below, it shows how a bean is loaded into spring.
Write picture description here

summary


This article is a macro introduction to the role of the spring container, the next article will introduce the assembly process of spring in detail, that is, if spring's DI helps components establish connections

Guess you like

Origin blog.csdn.net/cd18333612683/article/details/79019631