Skip to content

Commit cf1dc6d

Browse files
committed
Upgrade to Spring Framework 5.3.27
Closes gh-35497
1 parent b00b2ea commit cf1dc6d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/HikariDriverConfigurationFailureAnalyzer.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,12 +28,12 @@
2828
*/
2929
class HikariDriverConfigurationFailureAnalyzer extends AbstractFailureAnalyzer<CannotGetJdbcConnectionException> {
3030

31-
private static final String EXPECTED_MESSAGE = "Failed to obtain JDBC Connection:"
32-
+ " cannot use driverClassName and dataSourceClassName together.";
31+
private static final String EXPECTED_MESSAGE = "cannot use driverClassName and dataSourceClassName together.";
3332

3433
@Override
3534
protected FailureAnalysis analyze(Throwable rootFailure, CannotGetJdbcConnectionException cause) {
36-
if (!EXPECTED_MESSAGE.equals(cause.getMessage())) {
35+
Throwable subCause = cause.getCause();
36+
if (subCause == null || !EXPECTED_MESSAGE.equals(subCause.getMessage())) {
3737
return null;
3838
}
3939
return new FailureAnalysis(

spring-boot-project/spring-boot-dependencies/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ bom {
17161716
]
17171717
}
17181718
}
1719-
library("Spring Framework", "5.3.20") {
1719+
library("Spring Framework", "5.3.27") {
17201720
group("org.springframework") {
17211721
imports = [
17221722
"spring-framework-bom"

0 commit comments

Comments
 (0)