Spring allows to create different profiles for an application - like Dev, Test, Prod
It is a way to segregate different application configurations and make it available only in certain environment.
Any @Component or @Configuration can be marked with @Profile to limit when it is loaded:
@Configuration @Profile("production") public class ProductionConfiguration { // ... }
we can use spring.profiles.active to specify which profiles are active.
No comments:
Post a Comment