Maven使用
摘要:maven 传递依赖机制 http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html 当遇到多个版本作为依赖关系时,maven 将选择哪个版本作为真正的依赖呢? Maven选择了“最近的定
阅读全文
posted @
2020-03-23 10:28
快鸟
阅读(266)
推荐(0)
根据条件加载 bean:即 @ConditionalOnXxx 的解析
摘要:(version: SpringBoot 2.2.2.RELEASE) 加载 @Configration 类,或者 @Configuration 类里面的 beanMethod 时,通常会用到条件加载,即:@CondtionalOnXxx 1. org.springframework.context
阅读全文
posted @
2020-03-07 00:05
快鸟
阅读(2623)
推荐(1)
@Configuration 配置类排序
摘要:(version: SpringBoot 2.2.2.RELEASE) SpringBoot 会对 spring.factories 中的 @Configuration 类进行排序。注意:只是对所有 spring.factories 中的 @Configuratin 类排序(也就是通常使用的 sta
阅读全文
posted @
2020-03-06 23:46
快鸟
阅读(4544)
推荐(0)