1.spring加载顺序
BeanFactoryPostProcessor的postProcessBeanFactory方法
例如PropertyPlaceholderConfigurer、PropertyOverrideConfigurer和CustomEditorConfigurer
bean的构造方法
bean的set方法
BeanPostProcessor的postProcessBeforeInitialization方法
bean实现了InitializingBean接口,对应的方法为afterPropertiesSet
在bean定义的时候,通过init-method设置的方法
BeanPostProcessor的postProcessAfterInitialization方法
BeanFactoryPostProcessor的postProcessBeanFactory方法
例如PropertyPlaceholderConfigurer、PropertyOverrideConfigurer和CustomEditorConfigurer
bean的构造方法
bean的set方法
BeanPostProcessor的postProcessBeforeInitialization方法
bean实现了InitializingBean接口,对应的方法为afterPropertiesSet
在bean定义的时候,通过init-method设置的方法
BeanPostProcessor的postProcessAfterInitialization方法