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

spring:
profiles:
active: dev

 

1.打开Edit Configurations配置IDEA在Edit Configurations中设计制定运行环境

 

 2.

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

 

相关文章:

  • 2022-01-04
  • 2022-03-01
  • 2021-11-12
  • 2021-04-07
  • 2021-06-23
  • 2021-09-17
  • 2022-01-29
猜你喜欢
  • 2021-06-18
  • 2021-07-25
  • 2021-11-19
  • 2021-08-12
  • 2021-05-24
  • 2021-11-23
相关资源
相似解决方案