bootstrap.yml与application.yml先后加载
时间: 2023-09-06 16:12:13 浏览: 125
Spring Boot 中application.yml与bootstrap.yml的区别
根据引用和引用的信息,可以得出结论:bootstrap.yml先于application.yml加载。这意味着当使用Spring Cloud Config Server时,先加载bootstrap.yml,然后再加载application.yml。 bootstrap.yml的加载顺序优先于application.yml,即bootstrap.yml会在application.yml之前被加载。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [bootstrap.yml与application.yml执行顺序(原因:类加载器的先后顺序)](https://blog.csdn.net/fwk19840301/article/details/90368735)[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%"]
- *3* [Springboot 中application.yml和bootStrap.yml 的加载顺序](https://blog.csdn.net/dulabing/article/details/80183662)[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 ]
阅读全文