springboot——配置文件加载位置
时间:2021-07-09 00:41:18
收藏:0
阅读:14
有四个位置。如下图:
springboot 启动会扫描以下位置的application.properties或者application.yml文件作为Spring boot的默认配置文件:
优先级1:项目路径下的config文件夹配置文件
优先级2:项目路径下配置文件
优先级3:资源路径下的config文件夹配置文件
优先级4:资源路径下配置文件
原文:https://www.cnblogs.com/xhylyxw/p/14988287.html
评论(0)