spring boot 配置文件加載順序詳解

1.項目內配置文件 spring boot 啓動會掃描以下位置的application.properties或者application.yml文件 作爲Spring boot的默認配置文件 –file:./config/ –file:./ –classpath:/config/ –classpath: 以上是按照優先級從高到低的順序,所有位置的文件都會被加載,高優先級配置內容會覆蓋低優先級配置內容
相關文章
相關標籤/搜索