Activating profiles in Spring Boot
If you're using Spring Boot, profiles can be activated in the following ways:
spring.profiles.active
propertyspring.profiles.include
propertyenvironment.setActiveProfiles
SpringApplication#additionalProfiles
orSpringApplicationBuilder.profiles()