Tagged articles
1 articles
Page 1 of 1
Senior Brother's Insights
Senior Brother's Insights
Apr 8, 2021 · Backend Development

Master Spring Boot 2.4+ Multi‑Environment Config: From Deprecated Profiles to spring.config.activate.on-profile

This guide explains how Spring Boot 2.4 and later deprecates the traditional spring.profiles.active property, introduces the new spring.config.activate.on-profile mechanism, and shows step‑by‑step YAML and command‑line examples for single‑file, multi‑file, and legacy configuration styles.

ProfilesYAMLspring-boot
0 likes · 7 min read
Master Spring Boot 2.4+ Multi‑Environment Config: From Deprecated Profiles to spring.config.activate.on-profile