Engineering Full Stack Apps with Java and JavaScript
@Profile annotation allow you to register components that will be selected only if its associated profile is active. You can selectively activate a set of beans in a class or all beans .