springboot可以自定义配置,那又是怎么实现让springboot使用我们的配置而不使用springboot的默认配置呢?
在你有自定义配置的时候,相当于重写了spring boot的默认配置
@ConfigurationProperties(prefix = "配置文件")
自定义本来就优先于默认配置
https://blog.csdn.net/guangcaiwudong/article/details/98218678
spring boot 自动配置是基于各种@Conditional 例如@ConditionalOnMissingBean 已存在自定义的配置 默认的AutoConfiguration中就不会进行配置