springboot项目多环境指定配置文件启动

在idea中edit configuration 的active profiles设置 test 或者prod 在启动项目时候,使用 java -jar -Dspring.profiles.active=test xxxx.jar
相关文章
相关标签/搜索