• Andy Wilkinson's avatar
    DevTools should only shut down single, auto-configured DataSource · a19eeaf9
    Andy Wilkinson authored
    Previously, there were two problems with DevTools’ DataSource
    auto-configuration:
    
    1. It did not tolerate a context with multiple DataSources
    2. It would attempt to shut down a DataSource that had not been created
       by DataSourceAutoConfiguration and, therefore, where we could not be
       sure of its configuration.
    
    This commit updates DevToolsDataSourceAutoConfiguration so that it backs
    off unless the context contains DataSourceProperties and a single
    DataSource created by DataSourceAutoConfiguration. This ensures that it
    can safely use DataSourceProperties to get the DataSource’s
    driver class name and accurately determine if it’s an in-memory or
    external database. Shutdown is only called for an in-memory database.
    
    Closes gh-5540
    a19eeaf9
Name
Last commit
Last update
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...