Spring Boot - Advanced Patterns
Given this custom auto-configuration snippet, what bean will be created if no other bean of type
MyService exists?@Configuration
@ConditionalOnMissingBean(MyService.class)
public class MyAutoConfig {
@Bean
public MyService myService() {
return new MyService("default");
}
}