|
|
|
@ -767,6 +767,9 @@ public class HikariConfig implements HikariConfigMXBean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (dataSource != null) {
|
|
|
|
|
if (dataSourceClassName != null) {
|
|
|
|
|
LOGGER.warn("using dataSource and ignoring dataSourceClassName");
|
|
|
|
|
}
|
|
|
|
|
LOGGER.info("{} - using dataSource={}", poolName, dataSource);
|
|
|
|
|
}
|
|
|
|
|
else if (dataSourceClassName != null) {
|
|
|
|
@ -774,6 +777,9 @@ public class HikariConfig implements HikariConfigMXBean
|
|
|
|
|
LOGGER.error("cannot use driverClassName and dataSourceClassName together");
|
|
|
|
|
throw new IllegalArgumentException("cannot use driverClassName and dataSourceClassName together");
|
|
|
|
|
}
|
|
|
|
|
else if (jdbcUrl != null) {
|
|
|
|
|
LOGGER.warn("using dataSourceClassName and ignoring jdbcUrl");
|
|
|
|
|
}
|
|
|
|
|
LOGGER.info("{} - using dataSourceClassName={}", poolName, dataSourceClassName);
|
|
|
|
|
}
|
|
|
|
|
else if (jdbcUrl != null) {
|
|
|
|
|