Spring5.0--你的PostConstruct注解为何不生效

PostConstruct注解依靠CommonAnnotationBeanPostProcessor的父类InitDestroyAnnotationBeanPostProcessor执行,当你启动注解功能<context:annotation-config/>会自动帮你注册CommonAnnotationBeanPostProcessor。 当bean初始化的时候(对应方法AbstractAuto
相关文章
相关标签/搜索