@SpringBootApplication
@EnableAutoConfiguration
@AutoConfigurationPackage
@Import(AutoConfigurationImportSelector.class implements DeferredImportSelector)
getImportGroup(): AutoConfigurationGroup implements DeferredImportSelector.Group
process()
getAutoConfigurationEntry() -> ImportCandidates.load -> META-INF/spring/%s.imports
getConfigurationClassFilter() -> AutoConfigurationMetadataLoader.loadMetadata -> META-INF/spring-autoconfigure-metadata.properties
fireAutoConfigurationImportEvents() -> SpringFactoriesLoader.loadFactories -> META-INF/spring.factories
selectImports() -> sortAutoConfigurations() -> @AutoConfigureOrder & @AutoConfigureBefore & @AutoConfigureAfter
@ComponentScan -> excludeFilters
AutoConfigurationExcludeFilter -> isAutoConfiguration() -> META-INF/spring.factories
TypeExcludeFilter -> ApplicationContextInitialize -> META-INF/spring.factories
上一篇
Redis-单线程+IO多路复用+SCAN
2023-06-13
下一篇
SpringBoot-核心流程模拟实现
2023-06-10