Fix DriverClassName not properly set
This commit is contained in:
parent
c7a711d0b2
commit
fa6e048c21
5
pom.xml
5
pom.xml
@ -171,6 +171,11 @@
|
|||||||
<!-- Maven Dependencies -->
|
<!-- Maven Dependencies -->
|
||||||
|
|
||||||
<!-- MySql Connection Pool -->
|
<!-- MySql Connection Pool -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>5.1.36</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-simple</artifactId>
|
<artifactId>slf4j-simple</artifactId>
|
||||||
|
|||||||
@ -113,6 +113,7 @@ public class MySQL implements DataSource {
|
|||||||
throws ClassNotFoundException, SQLException, TimeoutException,
|
throws ClassNotFoundException, SQLException, TimeoutException,
|
||||||
NumberFormatException, PoolInitializationException {
|
NumberFormatException, PoolInitializationException {
|
||||||
HikariConfig config = new HikariConfig();
|
HikariConfig config = new HikariConfig();
|
||||||
|
config.setDriverClassName("com.mysql.jdbc.Driver");
|
||||||
config.setJdbcUrl("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database);
|
config.setJdbcUrl("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database);
|
||||||
config.setUsername(this.username);
|
config.setUsername(this.username);
|
||||||
config.setPassword(this.password);
|
config.setPassword(this.password);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user