概要 Spring Boot の プロファイル機能である spring.profiles.include を利用して、例えばステージングと本番の AWS の S3 バケットがちがうというような環境差異を吸収していました。アプリケーション起動時に、spring.profiles.active を JVM オプションに指定して環境差異を吸収できます。 Comma-separated list of active profiles. Can be overridden by a command line switch. Spring Boot 2.4.X にバージョンアップしたところ、これまでの挙動が変わったため、変更する必要が生じたので、その方法をメモしておきます。 参考リンク ^^^^^^^ Change order of spring-profiles using spring.profi