服务器的时区价值”й׼ʱ”无法识别或代表多个时区。如果希望利用时区支持,必须配置服务器或JDBC驱动程序(通过serverTimezone配置属性),以使用更特殊的时区值。

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中执行

SHOW VARIABLES LIKE ‘%time_zone%’;
SET GLOBAL time_zone="+8:00";

也可以在url最后添加:?serverTimezone=GMT%2B8

你可能感兴趣的:(java基础)