SpringBoot - yaml文件位置优先级 + yaml dev/uat/prod多环境配置

不同配置文件位置

按照优先级顺序排序,1的优先级最高

 

 

 

 

多环境配置

.properties方式

 

 

.yaml方式

顶层的spring:profiles:active: dev决定真正使用哪个profiles

 

posted on 2020-12-06 13:58  frank_cui  阅读(906)  评论(0编辑  收藏  举报

导航

levels of contents