1.org.apache.ibatis.binding.BindingException: Type interface com.duan.dao.UserMapper is not known to the MapperRegistry.错误
看是否在核心配置文件中注册mapper.xml配置文件
2.绑定接口错误。
3.方法名不对。
4.返回类型不对。
5.Maven导出资源问题。
6.Server returns invalid timezone. Need to set ‘serverTimezone’ property.问题
即时区错误,原因是MySQL驱动中默认时区是UTC,与本地时间(中国)相差八个小时,所以链接不上
解决方法:在URL连接后添加:?serverTimezone=GMT
7.URL语句后&符号报错
在配置文件中,&需要写成&