Check validation error

pull/60/head
Brett Wooldridge 11 years ago
parent 0abb916c7c
commit 5ba531c3d4

@ -618,6 +618,10 @@ public class HikariConfig implements HikariConfigMBean
logger.error("when specifying jdbcUrl, driverClassName must also be specified");
throw new IllegalStateException("when specifying jdbcUrl, driverClassName must also be specified");
}
else if (driverClassName != null && jdbcUrl != null)
{
// OK
}
else if (dataSource == null && dataSourceClassName == null)
{
logger.error("one of either dataSource, dataSourceClassName, or jdbcUrl and driverClassName must be specified");

Loading…
Cancel
Save