mybatis框架连接mysql数据库执行查询报错

使用mybatis框架连接mysql数据库执行查询报错,

### Error querying database.  Cause: java.sql.SQLException: 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.
### The error may exist in com/gx/mapper/EmpMapper.xml
### The error may involve com.gx.mapper.EmployeeMapper.findAll
### The error occurred while executing a query
### Cause: java.sql.SQLException: 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.

mybatis框架连接mysql数据库执行查询报错_第1张图片
出现这种错误具体是什么原因我也不太清楚,只要在连接数据库 的文件中添加该时区&&serverTimezone=PRC就解决了

在这里插入图片描述

简单的查询出来那条数据来,说明包错已经解决了,很神奇吧!!!
在这里插入图片描述

你可能感兴趣的:(错误报告)