springboot配置文件加載位置

配置文件加載位置 springboot啓動會掃描如下位置的application.properties或者application.yml文件作爲springboot的默認配置文件 優先級從上到下爲: -file:./config/ -file:./ -classpath:/config/ -classpath:/ 高優先級的配置會覆蓋低優先級的配置; springboot會在這四個位置加載全部主配
相關文章
相關標籤/搜索