Add comment re: issue #701 to prevent accidental breakage of Spring Boot's FailureAnalyzer.

pull/705/head
Brett Wooldridge 9 years ago
parent 53d479cf03
commit bb86c38ac1

@ -767,6 +767,8 @@ public class HikariConfig implements HikariConfigMXBean
else if (dataSourceClassName != null) {
if (driverClassName != null) {
LOGGER.error("{} - cannot use driverClassName and dataSourceClassName together.", poolName);
// NOTE: This exception text is referenced by a Spring Boot FailureAnalyzer, it should not be
// changed without first notifying the Spring Boot developers.
throw new IllegalArgumentException("cannot use driverClassName and dataSourceClassName together.");
}
else if (jdbcUrl != null) {

Loading…
Cancel
Save