spring boot1.5.x 的配置文件加載優先級【關於spring.config.locatioin和spring.config.name】

網上不少文章介紹spring boot配置文件加載優先級,但是有的地方不全面,結合spring boot 1.5.x源碼分析和實際使用情況,在此彙總一下: 1、當系統啓動參數中指定spring.config.location,加載配置文件時會在spring.config.location指定目錄,結合默認路徑        file:./config/,file:./,classpath:/con
相關文章
相關標籤/搜索