如果在yml中的配置不起作用,查看下Edit Configurations是否已经配置。 spring: profiles: active: dev 1.打开Edit Configurations配置 2. 相关文章: 2022-01-04 2022-03-01 2021-11-12 2021-04-07 2021-06-23 2021-09-17 2022-01-29