application.properties配置双
时间: 2023-09-03 09:08:04 浏览: 118
application.properties配置文件可以同时被application.yaml配置文件覆盖。在使用application.yaml配置文件进行测试时,需要将application.properties配置文件中的配置注释掉,以确保application.properties不会覆盖application.yaml的配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [SpringBoot(二)application.properties配置文件详解](https://blog.csdn.net/yhahaha_/article/details/88568121)[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: 50%"]
- *2* [application.properties配置文件](https://blog.csdn.net/weixin_39654465/article/details/114203790)[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: 50%"]
[ .reference_list ]
阅读全文