SpringBoot配置文件加載順序

官方文檔說明:https://docs.spring.io/spring-boot/docs/2.1.6.RELEASE/reference/htmlsingle/ 找到如下圖所示位置Externalized Configuration(外部配置) 翻譯如下: 1.當前目錄下/config子目錄中 2.當前目錄 3.包中類路徑/config目錄中 4.類路徑下 優先級 1 > 2 >3>4 來個簡
相關文章
相關標籤/搜索