秦皇岛网络公司 网站托管,提高工作效率的工具,招聘网站排名,果业局网站建设第18集 refresh()-invokeBeanFactoryPostProcessor-二-ConfigurationClassPostProcessor的处理逻辑
【视频来源于#xff1a;B站up主孙帅suns Spring源码视频】【微信号#xff1a;suns45】
1、为什么PropertySource先处理#xff1f;
因为Conponent A在处理的过程中 要把…第18集 refresh()-invokeBeanFactoryPostProcessor-二-ConfigurationClassPostProcessor的处理逻辑
【视频来源于B站up主孙帅suns Spring源码视频】【微信号suns45】
1、为什么PropertySource先处理
因为Conponent A在处理的过程中 要把A的属性进行填充先 处理PropertySource属性的值就得到保证。
2、为什么Component还要有Service、Controller、Repository
语义化
3、ComponentScan会扫描那些类
Component【Service、Controller、Repository】 Configuration【非ApplicationContext启动时候非AppConfig类的Configuration】 并且处理了Component上面的Lazy Primary DependOn等等注解。
4、invokeBeanFactoryPostProcessor的处理过程
5、AppCofig中Comfiguration的解析过程
A解析内部类Component的处理 B处理配置文件PropertyResource CComponentScan解析分析 D处理Import E所有的处理过程 6、processImports-importSelector的处理过程 7、总结第18集
1、ConfigurationClassPostProcessor的处理过程先处理自动配置然后处理PropertySource接着处理ComponentScan会处理Configuration和Component会进行注册成为BeanDefinition 这里需要注意Configuration并非第一个AppConfig的Configuration接着就是处理三种Import。