今天在做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里面一句一句的看,直到我看到:

[html] view plain copy print?

  1. <mapper namespace="cn.mybatis_chop10_1.dao.EmpMapper">

这一行的时候,瞬间恍然大悟,原来是后面的EmpMapper写错了,把它改掉就行,比如我的是:

[html] view plain copy print?

  1. <mapper namespace="cn.mybatis_chop10_1.dao.IEmpDao">

在此告诉下大家,一定要细心,细心,再细心!!!尤其是重命名或者Ctrl+C,Ctrl+V的时候,格外注意!!!

最后在推荐一篇:mybatis反向生成实体类,dao层,Mapper:点击这里

mybatis报错Type interface xxx.Dao is not...相关推荐

  1. mybatis报错Type interface xxx.Dao is not known to the MapperRegistry

    今天在做mybatis的时候,遇到一个错误,大家看看这个错误吧:org.apache.ibatis.binding.BindingException: Type interface cn.mybati ...

  2. 解决报错Type interface ___ is not known to the MapperRegistry.

    解决报错Type interface ___ is not known to the MapperRegistry. 最近几天因为这个问题一直出错 今天终于在查看日志文件中找到原因 是因为在mybat ...

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

  4. 【问题记录】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. ...

  5. Mybatis 报错Mapper method ‘xxx‘ has an unsupported return type,解决办法

    我在mapper.xml里写了一个update,对应mapper层(dao层)接口写的返回值是一个实体类,就报这个错了 如下: mapper.xml mapper层接口 解决办法: mapper文件中 ...

  6. 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 在主 ...

  7. 异常处理: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 ...

  8. 报错:Parameter ‘XXX‘ implicitly has an ‘any‘ type.解决方法

    报错:Parameter 'XXX' implicitly has an 'any' type.解决方法 tsconfig.json添加"noImplicitAny": false ...

  9. Mybatis报错:Could not resolve type alias

    一.问题描述 打包项目成jar包,启动莫名其妙的mybatis报错如下: org.springframework.core.NestedIOException: Failed to parse map ...

最新文章

  1. 谷歌AI新技术:通过追踪虹膜,普通摄像头也能测距
  2. 写给自己的2019年规划
  3. 力扣(LeetCode)78
  4. python ==》 内置函数
  5. KNNClassifier
  6. Day13-日历模块
  7. Linux 下的帮助命令
  8. DIV+CSS规范命名集合
  9. Java基础:参数是如何传递的
  10. samba和nfs的自动挂载
  11. python中怎样划分时间段_如何划分重叠的日期时间间隔(组织模式时钟时间)?...
  12. 冰河木马简易使用 ——病毒木马 003
  13. python点击按钮后跳到另一个页面_js点击button按钮跳转到另一个新页面
  14. 类似婚礼纪的Java项目_「婚礼纪」婚礼纪 java面试 - seo实验室
  15. 2022全新好玩的恶搞屁声音小程序源码+UI不错
  16. 几种颜色单位设置(颜色设置)
  17. Unity 《愤怒的小鸟》涉及的主要知识
  18. 面试杂谈之我的实习求职之路(7个offer)
  19. 安搭Share:主播探店为实体店发展迎来新机遇
  20. NTC 热敏电阻温度计算公式

热门文章

  1. pythonwhile循环怎么修改数据类型_python基础--数据类型循环
  2. python适用范围_Python应用范围总结概览
  3. AtCoder Regular Contest 063 E - Integers on a Tree 构造 + 二分图染色
  4. Codeforces Round #722 (Div. 2)
  5. [线性代数学习笔记] 线性递推数列及 Berlekamp-Massey 算法的详细推导过程
  6. 铺地毯(矩形的交+前后缀矩形交)
  7. [指数型生成函数专练]chocolate,红色病毒问题,排列组合,字串数
  8. CF600F:Edge coloring of bipartite graph(二分图、构造)
  9. 无限序列 (ybtoj C.3)
  10. P2257-YY的GCD【莫比乌斯反演】