spring boot 配置文件優先級

SpringBoot配置文件能夠放置在多種路徑下,不一樣路徑下的配置優先級有所不一樣。
可放置目錄(優先級從高到低)ide

file:./config/ (當前項目路徑config目錄下);
file:./ (當前項目路徑下);
classpath:/config/ (類路徑config目錄下);
classpath:/ (類路徑config下).ui


原文:https://blog.csdn.net/it_faquir/article/details/80869578 spa

相關文章
相關標籤/搜索