摘要:
com.mysql.jdbc.Driver是MySQL 5版本的。MySQL 5以上需要使用 com.mysql.cj.jdbc.Driver。 否则会报错: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new dri 阅读全文
摘要:
报错信息类似这样: Wed May 27 14:15:54 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 阅读全文
摘要:
1、Build path添加jdbc驱动包 2、编写驱动类 import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class Connect { public C 阅读全文