spring bean life cycle and context initialization

The first stage:

1 preparation phase according to the initial definition BeanDefintionReader Bean, then there are usually two in a bean definition annotation Bean defined reader , one xmlBean defined reader .

BeanDefinition spring is in Bean metadata definitions:

Comprising: (1) bean of the Scope; (2) whether lazy loading; (3) simpleName; (4) parentName, (5) DependsOn

 


In the four methods doCreateBean

1 createBeanInstance
2 populateBean
3 initializaBean
4 DisposableBean

The first step in

Guess you like

Origin www.cnblogs.com/zzq-include/p/12148693.html