笔者在做mybatis的一个例子的时候,出现了下面这一个报错

org.apache.ibatis.binding.BindingException: Type interface com.myBatis.dao.AccountDao 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:745)at org.apache.ibatis.session.defaults.DefaultSqlSession.getMapper(DefaultSqlSession.java:292)at com.itheima.test.MybatisMutiTableTest.before(MybatisMutiTableTest,java:30) <23 internal calls>Process finished with exit code -1

报错原因:

  • 核心配置文件 MyBatis.xml 里映射器配置文件路径没有写正确

**解决办法:**将mappers里的路径名称修改正确即可

 <!--映射器配置文件--><mappers><mapper resource="com/myBatis/dao/AccountDao.xml"/></mappers>

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

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

    动态代理因为namespace的地方写错了 转载于:https://www.cnblogs.com/wth21-1314/p/6590968.html

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

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

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. 关于配置双数据源报错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.,在网上 ...

  7. 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 ...

  8. 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 ...

  9. 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 ...

最新文章

  1. bzoj1227: [SDOI2009]虔诚的墓主人(树状数组,组合数)
  2. 谈谈UI架构设计的演化
  3. 电脑台式计算机描述不可用,win7系统计算机描述不可用的解决方法
  4. MPLS BGP标签分发过程——Vecloud
  5. mysql中主键外键的作用_数据库主键和外键的作用以及索引的作用,它的优缺点是什么?...
  6. 【web安全】第三弹:web攻防平台pentester安装及XSS部分答案解析
  7. 9.2-控制单元CU的功能(学习笔记)
  8. mysql定时导入_MySQL导入、导出、数据库定时备份
  9. mysql数据库的三级模式_2016年计算机三级MySQL数据库试题
  10. 三星 SGH-G810 多普达 P800 多普达 Touch Diamond(S900) 多普达 P860 多普达 Touch(T3238) 对比...
  11. PHP可以读取什么配置文件,PHP读取配置文件类实例
  12. 数据结构笔记(十一)串
  13. MATLAB 中跳出if条件判断
  14. rms 公式 有效值_为什麼均方根值(RMS)比平均值表达好一些?
  15. 家中的两台计算机如何实现联网,怎么设置用两台电脑实现局域网共享上网
  16. 2021.12月电脑浏览器推荐-cent浏览器内存占用只有Google谷歌Chrome的68%
  17. html万花筒相册旋转效果,jquery css3 3D万花筒图片相册展示特效
  18. inflect java_在native线程利用JNI 反射自定义类
  19. Foxmail管理多个电子邮箱
  20. 百度主动推送怎么用?

热门文章

  1. 计算机毕业设计ssmJAVA高校田径运动会管理61s38系统+程序+源码+lw+远程部署
  2. 播放器事件/与JS交互
  3. ue模糊查询_UE正则表达式语法
  4. 软银NAO机器人视觉防抖系统
  5. php源码 收据管理,黄金票据 白银票据 ms14068(示例代码)
  6. mfc创建excel如何另存为_mfc表格数据保存为excel文件-VC (MFC)如何从对话框写数据到Excel...
  7. Java 循环-万年历(日历)
  8. matlab特征匹配,MATLAB图像处理-特征提取-形状特征 方法小结
  9. 摄影师为你解释自定义白平衡与准确的色彩还原
  10. Thinkpad T14安装无线网卡驱动