在idea中edit configuration 的active profiles设置 test 或者prod 在启动项目时候,使用 java -jar -Dspring.profiles.active=test xxxx.jar