feat: update spigot version and disable mysql ssl

Signed-off-by: MiaoWoo <admin@yumc.pw>
merge/16/MERGE
MiaoWoo 2019-09-10 15:22:42 +08:00
parent 1beb0e6de2
commit 1905bcedb9
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<version>1.14.4-R0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>gson</artifactId>

View File

@ -50,7 +50,8 @@ public class MySQLCore extends DataBaseCore {
this.info.put("password", password);
this.info.put("useUnicode", "true");
this.info.put("characterEncoding", "utf8");
this.url = "jdbc:mysql://" + host + ":" + port + "/" + dbname;
this.info.put("useSSL", "false");
this.url = "jdbc:mysql://" + host + ":" + port + "/" + dbname + "";
try {
Class.forName(driverName).newInstance();
} catch (Exception e) {