0
点赞
收藏
分享

微信扫一扫

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

ZSACH 2022-03-15 阅读 73

控制台具体的报错是:

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 条评论