1:java
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.myspringboot.dao.AyUserDao.findByNameAndPasswordspring
这是由于namespace的问题 必定要写正确的路径名,固然了 ,也不能写错了 apache
2:springboot
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating interface com.example.myspringboot.dao.AyUserDao with invalid types () or values (). Cause: java.lang.NoSuchMethodException: com.example.myspringboot.dao.AyUserDao.<init>()mybatis
这是由于 resultMap的type属性必定要写成你的实体类名 不要写成接口名 spa
错误实例:blog
正确的:接口