[!tips]
spring boot 2.4 之后为了提升对 kubernetes 的支持,整个 spring.profiles 作废了;因此我们可以通过 spring.config.import 来代替它
命令行指定
java -jar your-application.jar --spring.profiles.active=dev,biz
右侧的配置会覆盖左侧的配置所以 biz 配置会覆盖 dev 配置两个 profile 的配置都会覆盖默认配置文件中的值
2024/5/5...大约 1 分钟