解决org.apache.ibatis.binding.BindingException: Type interface com.mytest.dao.IUserDao is not known to the MapperRegistry.

以下是报错信息,意思是 接口类型的mapper未知,没有被注册或加载

org.apache.ibatis.binding.BindingException: Type interface com.mytest.dao.IUserDao is not known to the MapperRegistry.at org.apache.ibatis.binding.MapperRegistry.getMapper(MapperRegistry.java:47)at org.apache.ibatis.session.Configuration.getMapper(Configuration.java:779)at org.apache.ibatis.session.defaults.DefaultSqlSession.getMapper(DefaultSqlSession.java:291)at com.mytest.test.MybatisTest.testFindAll(MybatisTest.java:31)

解决方案:
在mybatis的配置文件中将该mapper的映射配置进去就行了。

<mappers><mapper class="com.mytest.dao.IUserDao"></mapper></mappers>
</configuration>

解决org.apache.ibatis.binding.BindingException: Type interface *** is not known to the MapperRegistry.相关推荐

  1. 解决org.apache.ibatis.binding.BindingException: Type interface XXX is not known to the MapperRegistry

    笔者在做mybatis的一个例子的时候,出现了下面这一个报错 org.apache.ibatis.binding.BindingException: Type interface com.myBati ...

  2. 关于配置双数据源报错org.apache.ibatis.binding.BindingException: Type interface is not known to the MapperRegis

    报错org.apache.ibatis.binding.BindingException: Type interface is not known to the MapperRegistry.,在网上 ...

  3. org.apache.ibatis.binding.BindingException: Type interface com.kuang.dao.UserDao is not known to the

    错误:绑定异常 org.apache.ibatis.binding.BindingException: Type interface com.kuang.dao.UserDao is not know ...

  4. Mybatis报错org.apache.ibatis.binding.BindingException: Type interface com.trf.dao.UserDao is not known

    报错log:org.apache.ibatis.binding.BindingException: Type interface com.trf.dao.UserDao is not known to ...

  5. org.apache.ibatis.binding.BindingException: Type interface xxx.Mapper is not known to the MapperRegi

    一.错误描述 今天心血来潮回顾了一下mybatis项目,发现如下错误: org.apache.ibatis.binding.BindingException: Type interface com.z ...

  6. org.apache.ibatis.binding.BindingException: Type interface org.aptech.hdax.dao.BuoKeDao is not known

    错误信息: org.apache.ibatis.binding.BindingException: Type interface org.aptech.hdax.dao.BuoKeDao is not ...

  7. MyBatis报错:org.apache.ibatis.binding.BindingException: Type interface com.smbms.dao.provider.Provider

    在Java使用MyBatis框架开发时,遇到报错:org.apache.ibatis.binding.BindingException: Type interface com.smbms.dao.pr ...

  8. org.apache.ibatis.binding.BindingException:Type interface com.itcase.dao.UserDao is not knownto the

    报错信息: org.apache.ibatis.binding.BindingException: Type interface com.itcase.dao.UserDao is not known ...

  9. Exception in thread “main“ org.apache.ibatis.binding.BindingException: Type interface com.neusoft.Id

    Exception in thread "main" org.apache.ibatis.binding.BindingException: Type interface com. ...

最新文章

  1. Android ContentProvider和getContentResolver
  2. Shell-实际业务操作03
  3. 工作243:name报错
  4. a as as big rat_干货!A Level数学大考攻略:冲刺A*的8大解题思路、8个失分大坑
  5. raspberry ubuntu 修改源为清华_Ubuntu 下 Janus Server 搭建笔记
  6. java 线程死锁简单例子_java 多线程死锁详解及简单实例
  7. 阿里海量大数据平台的运维智能化实践
  8. C++_SHFileOperation文件夹操作
  9. Ubuntu 安装package提示依赖: XXX 但是它将不会被安装 解决方法
  10. 医院预约挂号系统(Java+SSM+MySQL+Maven)
  11. 声呐直线阵正交混频实验(HEU信息与信号处理创新实践项目一)
  12. 如何快速实现西门子S7-200/300 PLC转Modbus-TCP协议与第三方数据对接
  13. 【京东量化平台周年庆】技术交流月,好礼领不停
  14. A题 序号互换(进制转换)
  15. 科研|学生举报导师和院长剽窃其本科论文,校方处理结果令人失望!
  16. 国际扫盲日:TcaplusDB祝孩子们的梦都能飞翔
  17. 安卓手机ROOT后怎么删除系统自带软件?
  18. 火山小视频伪原创怎么做
  19. 使用setuptools构建python包
  20. 您的计算机上有多个活动的网络连接未修复,修复win10“我们无法设置移动热点因为你的电脑未建立以太网”的方法...

热门文章

  1. 非常全的各大IT公司面试题集
  2. 《找你妹2》开发者云中游再声明:热酷涉嫌严重违约发布侵权竞品
  3. DM368 模块/模组 让办公更加便捷
  4. DM368开发 -- 编码并实时播放
  5. Disruptor实际应用示例
  6. 嵌入式实时操作系统uc/OS-II第3章课后习题5-9
  7. 深度解析Create_clock与Create_generated_clock的区别
  8. CA6140数控改造设计(数控示意总图+主轴箱装配图+纵向进给系统图+电气原理图+调隙式齿轮+横向进给系统图+横向丝杠支座+毕业设计说明书)
  9. [小工具]-unbuntu20.04/16.04/18.04安装vncviewer及解决Linux error while loading shared libraries: libX11.so.6
  10. 让Windows免疫Autorun病毒