Spring Boot - Advanced Patterns
Given this Spring Boot bean definition:
What happens if the property
@Bean
@ConditionalOnProperty(name = "app.feature", havingValue = "enabled")
public Service myService() {
return new Service();
}What happens if the property
app.feature=disabled is set in application.properties?