解决方法:
URL写为:(其中test为连接的数据库名称)
String url = "jdbc:mysql://localhost:3306/test?useUnicode=
true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai\r\n"
解决方法:
URL写为:(其中test为连接的数据库名称)
String url = "jdbc:mysql://localhost:3306/test?useUnicode=
true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai\r\n"