springboot配置文件执行顺序
时间: 2023-09-20 15:14:42 浏览: 179
在Spring Boot中,配置文件的执行顺序是根据优先级来确定的。优先级由小到大,数字越小,优先级越高。根据提供的引用内容,可以得出以下结论:
1. 在同一目录下的不同扩展名的配置文件,优先级由高到低是: *.properties > *.xml > *.yml > *.yaml。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Spring Boot配置文件顺序学习](https://blog.csdn.net/a1275302036/article/details/125687620)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Spring Boot配置文件加载顺序](https://blog.csdn.net/libie_lt/article/details/103497399)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文