启动springboot项目 指定使用外部配置文件

使用外部自定义application.properties 文件可以使用参数spring.config.location进行指定,springboot会自动使用该位置的配置文件html 例如 -Dspring.config.location=classpath:   表示使用根目录下的spring 转载于:https://www.cnblogs.com/imfx/p/10691428.htmlsp
相关文章
相关标签/搜索