springboot2.4之前版本和之后的版本在多环境配置上有些差别 application.yml spring: profiles: active: "dev" application-dev.yml spring: config: activate: on-profile: "dev"