源码解析:init-method、@PostConstruct、afterPropertiesSet孰先孰后

http://sexycoding.iteye.com/blog/1046993

@PostConstruct注解后的方法在BeanPostProcessor前置处理器中就被执行了,所以当然要先于InitializingBean和init-method执行了。

Constructor > @PostConstruct > InitializingBean > init-method

posted @ 2017-10-19 11:11  李高峰  阅读(544)  评论(0编辑  收藏  举报