- @ConditionalOnClass(此类存在配置生效)
- @ConditionalOnMissingClass(此类不存在配置生效)
- @ConditionalOnBean
- @ConditionalOnMissingBean
- @ConditonalOnProperty(某个参数)
- @ConditonalOnResource(某个资源)
- @ConditonalOnWebApplication
- @ConditionalOnNotWebApplication
- @ConditionalOnExpression
指定顺序
- AutoConfigureAfter(在哪个配置之后生效)
- AutoConfigureBefore(在哪个配置之前生效)
- AutoConfigureOrder