MyBatis错误整合(持续更新)

1:Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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 configurat

此问题为时区问题,在 JDBC 的连接 url 部分加上 serverTimezone=UTC 即可。 
如图: 
这里写图片描述

2:Cause: java.lang.ClassNotFoundException: Cannot find class: com.mysql.cj.jdbc.Driver,,

mysql-connection  jar包更新为8.0或者更高版本

3:org.apache.ibatis.binding.BindingException: Type interface xxx is not known to the MapperRegistry

接口名和映射文件namespace不一致

猜你喜欢

转载自blog.csdn.net/sinat_37064286/article/details/86772401