SpringBoot - 配置文件加載位置與優先級

【1】項目內部配置文件 spring boot 啓動會掃描如下位置的application.properties或者application.yml文件做爲Spring boot的默認配置文件html –file:./config/ –file:./ –classpath:/config/ –classpath:/ 即以下圖所示:java 以上是按照優先級從高到低的順序,全部位置的文件都會被加載,高
相關文章
相關標籤/搜索