Medium java spring

9. How does Spring Boot load profile-specific configurations?

Sample answer: "I set spring.profiles.active, for example prod. Boot then also loads application-prod.properties, and profile files always override the non-profile ones. With several profiles the last one wins. @Profile on beans turns them on or off per profile."

Sources (2)
  1. Profiles
  2. External config: Profile-specific files