Spring Boot - Advanced Patterns
Why does this bean fail to create?
Assuming no bean named "missingBean" exists in the context.
@Bean
@ConditionalOnBean(name = "missingBean")
public MyBean myBean() { return new MyBean(); }Assuming no bean named "missingBean" exists in the context.
