Spring profiles
Config
In application.properties
spring.profiles.active=prod
Activate multiple profiles:
spring.profiles.active=local,test
@Profile Annotation Make a component/configuration class / bean available in certain profiles.
@Profile annotation Javadoc
@Con...
ebifurai.hashnode.dev1 min read