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

时间:2017-10-19 11:39:29   收藏:0   阅读:222

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

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

Constructor > @PostConstruct > InitializingBean > init-method

原文:http://www.cnblogs.com/adealjason/p/7691412.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!