Skip to content

Commit

Permalink
update driver class name
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingYu-Z committed Mar 31, 2021
1 parent 7b57bc5 commit 86eb519
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.37</version>
<scope>runtime</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/beingyi/mysql/utils/JDBCUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 86eb519

Please sign in to comment.