之前使用Idea时,因为是非springboot项目,所以src/main/resources目录下新建 dev,test,prod三个环境,然后在IDEA右侧的Maven projects下的profiles下就能一键切换环境了。现在使用了springboot,三个环境对应不同的配置:application-dev/test/pro.properties,需要在application.properties里面进行手动切换。spring.profiles.active那能不能也能在IDEA右侧的Maven projects下的profiles下一键切换呢?
添加回答
举报
0/150
提交
取消