• Andy Wilkinson's avatar
    Tune @ConditionalOnMissingBean for interface-based back off · 419f92d3
    Andy Wilkinson authored
    Previously, a number of usages of @ConditionalOnMissingBean prevented
    a bean that implements an auto-configured bean's "main" interface from
    causing the auto-configuration of the bean to back off. This would
    happen when @ConditionalOnMissingBean did not specify a type, the
    @Bean method returned the bean's concrete type, and that concreate
    type implements a "main" interface.
    
    This commit updates such usages of @ConditionalOnMissingBean to
    specify the "main" interface as the type of the bean that must be
    missing. This will allow, for example, the auto-configured
    MongoTemplate bean to back off when a MongoOperations bean is defined.
    
    Fixes gh-18101
    419f92d3
Name
Last commit
Last update
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
spring-boot-project Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-samples-invoker Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...