【纠错】You must configure either the server or JDBC driver

本人错误:
The server time zone value ‘XXXXXX’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

jdbc:mysql://localhost:3306/test
后加上
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
主要原因由于时区问题,可能乱码或者获取不当。将时区改成UTC标准就好,也解决中文乱码问题。

你可能感兴趣的:(【纠错】)