Fix DriverClassName not properly set

This commit is contained in:
Xephi59 2015-08-26 18:55:33 +02:00
parent c7a711d0b2
commit fa6e048c21
2 changed files with 533 additions and 527 deletions

1059
pom.xml

File diff suppressed because it is too large Load Diff

View File

@ -113,6 +113,7 @@ public class MySQL implements DataSource {
throws ClassNotFoundException, SQLException, TimeoutException,
NumberFormatException, PoolInitializationException {
HikariConfig config = new HikariConfig();
config.setDriverClassName("com.mysql.jdbc.Driver");
config.setJdbcUrl("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database);
config.setUsername(this.username);
config.setPassword(this.password);