org.apache.ibatis.binding.BindingException: Type interface com.he.dao.UserDao is not known to the MapperRegistry.
报这个错误的时候
原因一:
映射文件中的 namespace 中所指向的接口
是否与测试类中的 sqlSession.getMapper()中的参数是否是同一个接口
如果不是 请改为同一个接口
原因二:
看看mybatis配置文件中是否配置了 mapper的位置