• Phillip Webb's avatar
    Restore AbstractRoutingDataSource health support · c5138c56
    Phillip Webb authored
    Update `DataSourceHealthContributorAutoConfiguration` so that any
    `AbstractRoutingDataSource` beans are still included in the overall
    health. Prior to this commit, a regression in Spring Boot 2.2 meant
    that if a single routing bean was found an `IllegalArgumentException`
    would be thrown.
    
    In Spring Boot 2.1 all `AbstractRoutingDataSource` would be filtered
    from the results, but if no results existed the following was returned:
    
      "details": {
        "db": {
          "status": "UNKNOWN"
        },
    
    In Spring Boot 2.2 we now always include routing datasource beans, even
    if other non-routing database beans are found. The health details
    includes `"routing" : true` to help users disambiguate any results.
    
    Fixes gh-18661
    c5138c56
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...
idea Loading commit data...
spring-boot-project 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...