spring boot 使用外部配置文件

1、springboot 啓動時加載  application.properties的優先級java 1.當前目錄的./config目錄spring 2.當前目錄springboot 3. classpath /config packageapp 4.The classpath rootspa 2、配置實踐code        通常狀況下把application.properties放在當前路徑
相關文章
相關標籤/搜索