IDEA在Edit Configurations中设计制定运行环境

如果在yml中的配置不起作用,查看下Edit Configurations是否已经配置。

spring:
profiles:
active: dev

1.打开Edit Configurations配置

 2.

原文地址:https://www.cnblogs.com/wang-yaz/p/12325824.html