![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
请刷新后重试
这个作者很懒,什么都没留下…
展开
-
Loading class com.mysql.jdbc.Driver. This is deprecated. The new driver class is com.mysql.cj.jdbc.D
JDBC连接数据库加载驱动时报错,虽然不影响程序运行但有错还是解决的好// 1.加载驱动 Class.forName("com.mysql.jdbc.Driver"); //固定写法,加载驱动报错信息:Loading class ‘com.mysql.jdbc.Driver’. This is deprecated. The new driver class is ‘com.mysql.cj.jdbc.Driver’. The driver is automatically regi原创 2020-06-10 23:44:50 · 876 阅读 · 1 评论 -
java.sql.SQLException: The server time zone value ‘xxx’ is unrecognized or represents more than one
JDBC连接数据库时报错// 2.用户信息和url// useUnicode=true&characterEncoding=utf8&useSSL=true// 支持中文编码&设定字符集为utf8&使用安全的连接tring url = "jdbc:mysql://localhost:3306/jdbcstudy?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&useSS原创 2020-06-10 23:23:23 · 240 阅读 · 0 评论