Spring中BeanFactoryPostProcessor和BeanPostProcessor都是Spring初始化bean时对外暴露的扩展点.两个接口从名字看起来很相似,但是作用及使用场景却不同. 关于BeanPostProcessor介绍在这篇文章中已经讲过:http://www.cnblogs.com/sishang/p/6576665.html这里主要介绍BeanFactoryPostProcessor. Spring IoC容器允许BeanFactoryPostProcessor在…
BeanFactoryPostProcessors affect BeanDefinition objects because they are run right after your configuration is read in.There are no bean instances created yet. So it can’t do anything to your objects instances yet. For Example the PropertyPlaceholder…