小错误-在maven中使用mybatis-generator时,出现The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represen

ZSACH

关注

阅读 73

2022-03-15

控制台具体的报错是:

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.

我的解决办法是:

在你配置所有有关jdbc的配置文件中,url里面的加上服务器时区,如下:

serverTimezone=Asia/Shanghai

精彩评论(0)

0 0 举报