Skip to content

Commit

Permalink
Fixed PoolInitializationException when initializing HikariCP
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Dec 18, 2021
1 parent 085e410 commit 3201a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/coreprotect/config/ConfigHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public static void loadDatabase() {
config.addDataSourceProperty("cacheServerConfiguration", "true");
config.addDataSourceProperty("maintainTimeStats", "false");
/* Disable SSL to suppress the unverified server identity warning */
config.addDataSourceProperty("allowPublicKeyRetrieval", "true");
config.addDataSourceProperty("useSSL", "false");

ConfigHandler.hikariDataSource = new HikariDataSource(config);
Expand Down

0 comments on commit 3201a18

Please sign in to comment.