配置文件加載位置與順序

需求分析 Spring boot 啓動會掃描以下位置的 application.properties 或者 application.yml 文件作爲 Spring boot 的默認配置文件 –file:./config/    -------------整個項目根目錄下的config目錄下 –file:./    ---------------------整個項目根目錄下 –classpath:/
相關文章
相關標籤/搜索