java连接数据库报错:Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '
1.解决方法
报错信息:
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '
此问题为时区问题,在 JDBC 的连接 url 部分加上 serverTimezone=UTC 即可。