一、报错“Specified class is an interface”
Failed to instantiate [xxx.UserMapper]: Specified class is an interface
原因:一般是Mapper接口出现重复,检查Mapper与Mapper.xml是否一一对应即可,往往需要对Mapper接口进行重命名
二、无效绑定异常
异常信息:org.apache.ibatis.binding.BindingException:Invalid bound statement (not found)
原因:Mapper接口没有配套的Mapper.xml文件,或者Mapper.xml文件中没有定义与Mapper中的方法相对应的SQL语句