ConditionalOnProperty
2022-11-17 本文已影响0人
Alen_ab56
@ConditionalOnProperty(name ="xxx", value ="true", matchIfMissing =true)
name:配置名
value:值
matchIfMissing:配置不存在也生效
@ConditionalOnProperty(name ="xxx", value ="true", matchIfMissing =true)
name:配置名
value:值
matchIfMissing:配置不存在也生效