解决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 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.相关推荐
- 解决org.apache.ibatis.binding.BindingException: Type interface XXX is not known to the MapperRegistry
笔者在做mybatis的一个例子的时候,出现了下面这一个报错 org.apache.ibatis.binding.BindingException: Type interface com.myBati ...
- 关于配置双数据源报错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.,在网上 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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. ...
最新文章
- Android ContentProvider和getContentResolver
- Shell-实际业务操作03
- 工作243:name报错
- a as as big rat_干货!A Level数学大考攻略:冲刺A*的8大解题思路、8个失分大坑
- raspberry ubuntu 修改源为清华_Ubuntu 下 Janus Server 搭建笔记
- java 线程死锁简单例子_java 多线程死锁详解及简单实例
- 阿里海量大数据平台的运维智能化实践
- C++_SHFileOperation文件夹操作
- Ubuntu 安装package提示依赖: XXX 但是它将不会被安装 解决方法
- 医院预约挂号系统(Java+SSM+MySQL+Maven)
- 声呐直线阵正交混频实验(HEU信息与信号处理创新实践项目一)
- 如何快速实现西门子S7-200/300 PLC转Modbus-TCP协议与第三方数据对接
- 【京东量化平台周年庆】技术交流月,好礼领不停
- A题 序号互换(进制转换)
- 科研|学生举报导师和院长剽窃其本科论文,校方处理结果令人失望!
- 国际扫盲日:TcaplusDB祝孩子们的梦都能飞翔
- 安卓手机ROOT后怎么删除系统自带软件?
- 火山小视频伪原创怎么做
- 使用setuptools构建python包
- 您的计算机上有多个活动的网络连接未修复,修复win10“我们无法设置移动热点因为你的电脑未建立以太网”的方法...
热门文章
- 非常全的各大IT公司面试题集
- 《找你妹2》开发者云中游再声明:热酷涉嫌严重违约发布侵权竞品
- DM368 模块/模组 让办公更加便捷
- DM368开发 -- 编码并实时播放
- Disruptor实际应用示例
- 嵌入式实时操作系统uc/OS-II第3章课后习题5-9
- 深度解析Create_clock与Create_generated_clock的区别
- CA6140数控改造设计(数控示意总图+主轴箱装配图+纵向进给系统图+电气原理图+调隙式齿轮+横向进给系统图+横向丝杠支座+毕业设计说明书)
- [小工具]-unbuntu20.04/16.04/18.04安装vncviewer及解决Linux error while loading shared libraries: libX11.so.6
- 让Windows免疫Autorun病毒