IDEA使用指定配置文件

编辑项目配置

 

 

如果是Spring Boot项目,可以在弹出的选项卡中直接修改 [Active profiles] 参数

 

 

 

或者也可以在VM options 中添加 -Dspring.profiles.active=xxx

如:

 

posted @ 2019-08-22 14:22  trency  阅读(5263)  评论(0)    收藏  举报