The server time zone value is unrecognized or repr

异常信息:

The server time zone value 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.

异常原因:

MySQL 5.6 的版本新特性。

解决方法:

connectionURL后面需要加上
&serverTimezone=GMT%2B8

转载于:https://blog.51cto.com/13508140/2093538

你可能感兴趣的:(The server time zone value is unrecognized or repr)