From 86eb519c87c8c9d020740af759d2824c69561b38 Mon Sep 17 00:00:00 2001 From: FlyingYu Date: Wed, 31 Mar 2021 09:25:09 +0800 Subject: [PATCH] update driver class name --- pom.xml | 1 - src/main/java/cn/beingyi/mysql/utils/JDBCUtils.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 90ffb04..a1951a4 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,6 @@ mysql mysql-connector-java - 5.1.37 runtime diff --git a/src/main/java/cn/beingyi/mysql/utils/JDBCUtils.java b/src/main/java/cn/beingyi/mysql/utils/JDBCUtils.java index 5ebef23..fc8399b 100644 --- a/src/main/java/cn/beingyi/mysql/utils/JDBCUtils.java +++ b/src/main/java/cn/beingyi/mysql/utils/JDBCUtils.java @@ -9,7 +9,7 @@ public class JDBCUtils { static { try { - Class.forName("com.mysql.jdbc.Driver"); + Class.forName("com.mysql.cj.jdbc.Driver"); } catch (ClassNotFoundException e) { e.printStackTrace(); }