标签:class 条件 select spring auto cto ports enable autoconf
ConfigurationPropertiesAutoConfiguration在spring.factories 文件中,是无条件的@configuration,会被实例化,然后解析上面的注解,@EnableConfigurationProperties其实是@Import注解,@Import(EnableConfigurationPropertiesImportSelector.class)
因为是ImportSelector,所以
ConfigurationPropertiesAutoConfiguration
标签:class 条件 select spring auto cto ports enable autoconf
原文地址:https://www.cnblogs.com/chuliang/p/9122293.html