在idea中edit configuration 的active profiles设置 test 或者prod

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

springboot项目多环境指定配置文件启动
在启动项目时候,使用
java -jar -Dspring.profiles.active=test xxxx.jar

相关文章: