mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-07 09:49:39 +00:00
DevToolsDataSourceAutoConfiguration and DevToolsR2dbcAutoConfiguration were only guarded by classes from the JDK and r2dbc-spi respectively. When a single user-defined DataSource or ConnectionFactory bean was present, their conditions went on to reference classes from spring-boot-jdbc or spring-boot-r2dbc. Both are optional dependencies of spring-boot-devtools, so startup failed with a NoClassDefFoundError when they were absent. This commit adds a class from each module to the class conditions. Without the modules the conditions could never match, so this only turns the failure into a back-off. See gh-51872 Signed-off-by: Kosuke Yanagihara <11373191+ksky8864@users.noreply.github.com>