目录
一、遇到问题
用mybatis去sql语句的时候报错了。
遇到红色这种问题的原因有很多,那就要根据第二行来判断。
第二行黄色报的这个是SQLException异常和有很多个???这种。说明数据库连接的问题报错了,改数据库时区就好了
Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException:
### Error updating 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/project/Mapper/adminMapper.