名称 | 来源/引入位置 | 功能介绍 |
---|---|---|
CachingMetadataReaderFactoryPostProcessor | 来源 : SharedMetadataReaderFactoryContextInitializer #initialize 引入位置: SpringApplication#prepareContext ==>#applyInitializers | |
ConfigurationWarningsPostProcessor | 来源 : ConfigurationWarningsApplicationContextInitializer #initialize 引入位置: SpringApplication#prepareContext ==>#applyInitializers | 获取应用中@ComponentScan 注解中指定的包,对它们进行分析,如果某一个为null ,或者为"",属于包org 或者org.springframework ,则在日志输出一条警告。 |
ConfigurationClassPostProcessor | 来源 : AnnotationConfigUtils #registerAnnotationConfigProcessors 引入位置: AnnotationConfigServletWebServerApplicationContext #constructor ==>AnnotatedBeanDefinitionReader #constructor | 发现和处理所有的配置类,注册其中的bean 定义 |
ConfigurationWarningsPostProcessor
在日志上输出的警告消息类似于:Your ApplicationContext is unlikely to start due to a @ComponentScan of XXX