Spring Boot - Advanced Patterns
Consider this bean definition:
If the property
@Bean
@ConditionalOnProperty(name = "app.mode", havingValue = "prod", matchIfMissing = false)
public DataSource prodDataSource() { return new DataSource(); }If the property
app.mode is not set in application.properties, what happens?