如果对于Springboot的启动过程有一定的了解,就能够很清晰的辨别几个PostProcessor的区别
先看源码时怎么说的
BeanDefinitionRegistryPostProcessor
public interface BeanDefinitionRegistryPostProcessor extends BeanFactoryPostProcessor {
/**
* Modify the application context's internal bean definition registry after its
* standard initialization. All regular bean definitions will have been loaded,
* but no beans will have been instantiated yet. This allows for adding further
* bean definitions before the next post-processing phase kicks in.
* 可以看到它的主要用途就是添加BeanDefinition,这也是为什么有BeanDefinitionRegistry&#x