啓動springboot項目 指定使用外部配置文件

使用外部自定義application.properties 文件可以使用參數spring.config.location進行指定,springboot會自動使用該位置的配置文件html 例如 -Dspring.config.location=classpath:   表示使用根目錄下的spring 轉載於:https://www.cnblogs.com/imfx/p/10691428.htmlsp
相關文章
相關標籤/搜索