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."
Medium
java
spring