利用mybatis连接数据库时,报错:
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时区设置的问题,可以采用两种办法解决:
1、在连接mysql的配置文件对应语句中添加
&serverTimezone=GMT
2、在mysql命令行中执行 以下命令:
选用其一就可以解决。