ConditionalOnProperty参数
时间: 2023-10-12 12:06:44 浏览: 76
Spring Boot中@ConditionalOnProperty的使用方法
5星 · 资源好评率100%
ConditionalOnProperty参数是用来配置条件注解@ConditionalOnProperty的属性值。根据引用,当learn.conditionalOnProperty.enabled=false时,testValueProperty()方法不再执行。根据引用,当learn.conditionalOnProperty.enabled=false时,testNameProperty()方法不再执行。因此,ConditionalOnProperty参数的值应该是learn.conditionalOnProperty.enabled。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [@ConditionalOnProperty的用法以及处理@ConditionalOnProperty的源码分析](https://blog.csdn.net/qq_33790670/article/details/108800037)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文