在使用InitializingBean的时候用@Component去注入的时候,发现了afterPropertiesSet方法会执行两次,换个思路,直接在xml中配置的时候发现只执行一次,求大神解答一下为啥
http://www.iteye.com/problems/15948