From 1905bcedb9a8c209142f644cd511a686d8c8e0f2 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Tue, 10 Sep 2019 15:22:42 +0800 Subject: [PATCH] feat: update spigot version and disable mysql ssl Signed-off-by: MiaoWoo --- pom.xml | 2 +- src/main/java/pw/yumc/YumCore/sql/core/MySQLCore.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index e995165..75d1b7a 100644 --- a/pom.xml +++ b/pom.xml @@ -66,7 +66,7 @@ org.spigotmc spigot-api - 1.12.2-R0.1-SNAPSHOT + 1.14.4-R0.1-SNAPSHOT gson diff --git a/src/main/java/pw/yumc/YumCore/sql/core/MySQLCore.java b/src/main/java/pw/yumc/YumCore/sql/core/MySQLCore.java index 48298b1..a5c8e4f 100644 --- a/src/main/java/pw/yumc/YumCore/sql/core/MySQLCore.java +++ b/src/main/java/pw/yumc/YumCore/sql/core/MySQLCore.java @@ -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) {