Spring的接口InitializingBean、BeanPostProcessor以及注解@PostConstruct、bean的init-method的执行先后顺序

https://blog.csdn.net/qq_23876769/article/details/86566790

BeanPostProcessor的postProcessBeforeInitialization方法
@postConstruct > InitializingBean接口 > @Bean(initMethod)
BeanPostProcessor的postProcessAftrInitialization方法
@preDestroy >DisposableBean接口 > @Bean(destroyMethod)

原文地址:https://www.cnblogs.com/cxxjohnson/p/14619613.html