mybatis报错Type interface xxx.Dao is not known to the MapperRegistry
今天在做mybatis的时候,遇到一个错误,大家看看这个错误吧:org.apache.ibatis.binding.BindingException: Type interface cn.mybatis_chop10_1.dao.IEmpDao is not known to the MapperRegistry.
我前找找后找找,就是找不出来,上网也没有找到具体的解决方式,于是,我就开始从mybatis-config.xml 到dao,再到Mapper.xm里面一句一句的看,直到我看到:
<mapper namespace="cn.mybatis_chop10_1.dao.EmpMapper">
这一行的时候,瞬间恍然大悟,原来是后面的EmpMapper写错了,把它改掉就行,比如我的是:
<mapper namespace="cn.mybatis_chop10_1.dao.IEmpDao">
在此告诉下大家,一定要细心,细心,再细心!!!尤其是重命名或者Ctrl+C,Ctrl+V的时候,格外注意!!!
最后在推荐一篇:mybatis反向生成实体类,dao层,Mapper:点击这里
mybatis报错Type interface xxx.Dao is not known to the MapperRegistry相关推荐
- mybatis报错Type interface xxx.Dao is not...
今天在做mybatis的时候,遇到一个错误,大家看看这个错误吧:org.apache.ibatis.binding.BindingException: Type interface cn.mybati ...
- 解决报错Type interface ___ is not known to the MapperRegistry.
解决报错Type interface ___ is not known to the MapperRegistry. 最近几天因为这个问题一直出错 今天终于在查看日志文件中找到原因 是因为在mybat ...
- Mybatis错误:Type interface com.dao.UserDao is not known to the MapperRegistry.
1.编写简单的mybatis架构后,运行显示出现错误:Type interface com.dao.UserDao is not known to the MapperRegistry. 2.添加my ...
- 【问题记录】04 MyBatis报错:Parameter ‘XXX‘ not found. Available parameters are [page, hashMap, param1, param
1.报错信息如下: nested exception is org.apache.ibatis.binding.BindingException:Parameter 'XXX' not found. ...
- Type interface xxx.XxxMapper is not known to the MapperRegistry解决方案
最近学SSM框架学到MyBatis时出现如题报错 上网搜一圈发现大部分两个原因: 1.config.xml文件中的Mapper中内容写错了 2.Mapper.xml文件中的namespace内容写错了 ...
- Mybatis 报错Mapper method ‘xxx‘ has an unsupported return type,解决办法
我在mapper.xml里写了一个update,对应mapper层(dao层)接口写的返回值是一个实体类,就报这个错了 如下: mapper.xml mapper层接口 解决办法: mapper文件中 ...
- 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 ...
- Springcloud报错:Action: Consider defining a bean of type ‘com.XXX.dao.XXXDao‘ in your configuration
Springcloud报错:Action: Consider defining a bean of type 'com.XXX.dao.XXXDao' in your configuration 在主 ...
- 异常处理:Mybatis报错:There is no getter for property named ‘xxxx‘ in ‘class xxx‘
异常处理:Mybatis报错:There is no getter for property named 'xxxx' in 'class xxx' 参考文章: (1)异常处理:Mybatis报错:T ...
最新文章
- SAP CRM One Order框架里旧式的索引表设计原理
- 手把手教你使用FineUI开发一个b/s结构的取送货管理信息系统(附源码+视频教程(第6节))...
- Bulk异常引发的Elasticsearch内存泄漏
- [译] Subject 和 Observable + Observer 的混淆指北[ Android RxJava2 ] ( 这什么鬼系列 ) 第八话...
- [案例]某体育用品公司在零售领域BI的产品应用解决方案
- POST 请求出现异常!java.io.IOException: Server returned HTTP response code: 400 for URL
- 标定_基于全景基础设施的多摄像机和3D激光雷达校准
- 大数据读书——《淘宝技术这十年》读书笔记
- 未来教育计算机书,未来教育计算机二级
- PG Doc:17章1-3小节翻译
- 物联网嵌入式开发平台和开发流程
- quilt 工具增加 patch 方法
- 自己写的uvc摄像头驱动程序
- 7628刷breed_小米路由器青春版 开启ssh 刷入breed 潘多拉 华硕 固件
- UVM搭建 ------ 进阶DIY教程
- 国科大学习资料--人工智能原理与算法-第十二次作业解析(学长整理)
- 自媒体视频素材|短视频标题文字动画PR模板素材
- adb连接的2种方式,有线(USB线)和无线
- python如何将数组里的数提取出来_python [:3] 实现提取数组中的数
- m3u8 视频提取工具(下载web中的ts文件)
热门文章
- #10010 「一本通 1.1 练习 6」糖果传递 (数学+贪心)
- 数据结构与算法-- 数组中出现次数超过一半的数字(时间复杂度的讨论)
- node.js安装部署
- JVM解惑:消失的异常堆栈,log中打印异常堆栈为空
- 徒手实现Spring的IOC
- NWERC 2018 C. Circuit Board Design 树 + 构造
- bzoj5093: [Lydsy1711月赛]图的价值
- [kuangbin]各种各样的题单
- Meeting HDU - 5521
- 牛客题霸 [	验证IP地址] C++题解/答案