SpringBoot自动装配时序图
2022-01-05 19:50:42 9 举报
SpringBoot自动装配时序图
作者其他创作
大纲/内容
ConfigurationClassPostProcessor
BeanDefinition加载
getImports
AbstractApplicationContext
refreshContext
ConfigurationClassParser
invokeBeanFactoryPostProcessors
PostProcessorRegistrationDelegate
AutoConfigurationImportSelector
SpringApplication
invokeBeanDefinitionRegistryPostProcessors
SpringBoot根据spring.factories文件中EnableAutoConfiguration配置的类加载,同时会根据spring-autoconfigure-metadata.properties配置文件中所配置的条件注解进行匹配,如果匹配成功则加载这些类。
processGroupImports
process
filter
refresh
postProcessBeanDefinitionRegistry
obtainFreshBeanFactory
processConfigBeanDefinitions
getAutoConfigurationEntry
run()
parse
run
0 条评论
下一页