Loading

beanPostProcessor与beanFactoryPostProcessor

BeanFactoryPostProcessor的典型应用:PropertyPlaceholderConfigurer

BeanFactoryPostProcessor会在所有的bean配置载入之后执行(即:applicationContext.xml解析完成之后)

 BeanFactoryPostProcessor接口

public interface BeanFactoryPostProcessor {

  void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException;

}

 

posted @ 2018-10-24 08:36  Hoonick  阅读(279)  评论(0编辑  收藏  举报