From 96753f4a309297e06bccc152d511187d956efacc Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 27 Dec 2020 01:35:49 +0100 Subject: [PATCH] Java 11 + Fix SSL warning for DB connection --- src/main/java/fr/pandacube/util/orm/DBConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/fr/pandacube/util/orm/DBConnection.java b/src/main/java/fr/pandacube/util/orm/DBConnection.java index 4a63107..49f8dc3 100644 --- a/src/main/java/fr/pandacube/util/orm/DBConnection.java +++ b/src/main/java/fr/pandacube/util/orm/DBConnection.java @@ -23,6 +23,7 @@ public class DBConnection { url = "jdbc:mysql://" + host + ":" + port + "/" + dbname + "?autoReconnect=true" + "&useUnicode=true" + + "&useSSL=false" + "&characterEncoding=utf8" + "&characterSetResults=utf8" + "&character_set_server=utf8mb4"