SpringBoot_配置文件

配置文件加載位置 springboot啓動會掃描以下位置的application.properties或者application.yml文件作爲Springboot的默認配置文件 file: ./config/ file: ./ classpath:/config/ classpath:/ 上述四個位置的配置文件如下圖所示。 注意 以上是按照優先級從高到低的順序,所有位置的文件都會加載,高優先級配
相關文章
相關標籤/搜索