排查方法如下:

1、mapper接口和mapper.xml是否在同一个包(package)下?名字是否一样(仅后缀不同)?

2、mapper.xml的命名空间(namespace)是否跟mapper接口的包名一致?(本人实在这里出错了)

比如下图: mapperxml中AccountMapper的包名写错了. 少写了一个p

3、接口的方法名,与xml中的一条sql标签的id一致

4、如果接口中的返回值List集合(不知道其他集合也是),那么xml里面的配置,尽量用resultMap(保证resultMap配置正确),不要用resultType

5、如果你的项目是maven项目,请你在编译后,到接口所在目录看一看,很有可能是没有生产对应的xml文件,因为maven默认是不编译的,因此,你需要在你的pom.xml的里面,加这么一段:

<resources><resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource>
</resources>

org.apache.ibatis.binding.BindingException原因总结相关推荐

  1. (原创)常见报错不常见原因之——org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

    错误日志:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)..... 常见原因:由于myb ...

  2. org.apache.ibatis.binding.BindingException: Mapper method 'com.wdg.person.api.IPerson.insertPerson'

    2019年,努力,奋斗!!!!! 严重: Servlet.service() for servlet [springMVC] in context with path [/mybatis] threw ...

  3. mybatis配置时出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)...

    如果出现: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 一般的原因是Mapper i ...

  4. 解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误

    解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误 2018年07月23日 16:5 ...

  5. Mybatis报错:nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘XXX‘ not found

    问题 使用Mybatis过程中报错 nested exception is org.apache.ibatis.binding.BindingException: Parameter 'XXX' no ...

  6. 解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ...

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. org.apache.ibatis.binding.BindingException: Invali ...

  7. 解决 : org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 报错: org.apache.ibatis.binding.BindingException:    ...

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

  9. 解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

    之前有用过SSM框架,并且自己搭过,完全没问题.工作之后一直用maven,前两天在maven下搭建了一个SSM框架,但是一直报绑定失效错误,具体错误如下: org.apache.ibatis.bind ...

最新文章

  1. 在Windows7/10上通过VS2013编译FFmpeg 4.1.3源码操作步骤
  2. 在windows下如何快速搭建web.py开发框架
  3. C++ 数字、string 简便互转
  4. 基于matlab的图解粒度参数计算,基于MATLAB的图解粒度参数计算-热带地理.PDF
  5. Visual Studio 2017 15.9预览版3支持ARM64 for UWP
  6. redis相对于mysql有什么劣势
  7. AndroidStudio安卓原生开发_Activity的启动模式standard和一部分singleTop启动模式---Android原生开发工作笔记86
  8. 数据中心高速需求 推动光通信迈向100Gbps
  9. node.js 模块_如何创建Node JS可重用模块
  10. 【Codeforces Round #555 (Div. 3) G】Inverse of Rows and Columns【bitset优化暴力...】
  11. SIM-MICRO-SIM- NANO SIM 区别
  12. 数据增强:模拟雨天算法Python
  13. 区块链对于相关流程和环节的联系,让元宇宙不再是虚无缥缈的概念
  14. 用户验收测试要求目标
  15. 腾讯程序员月薪7万,小编感觉自己像码畜...
  16. 【原创游戏】迷踪失路——恐怖风格的第一人称迷宫游戏
  17. 热议!211高校近200名硕博新生开学无宿舍住,需校外租房...
  18. office2016专业增强版语言包 VOL
  19. Pycharm导入conda虚拟环境时报错error code:1
  20. 利用定时器实现倒计时

热门文章

  1. html框架集 target
  2. Primavera 6.0
  3. 随时牵手,不要随意分手
  4. 浮点数能进行取模运算吗?(不行,暂时只能是两个整数之间)
  5. C++中的变量不初始化是什么结果?(整型、bool型、字符型)结果都是随机的,不确定
  6. reduce实现filter,map 数组扁平化等
  7. 5 个关于 API 中日期和时间设计规则
  8. 海量日志数据分析与应用》场景介绍及技术点分析
  9. 解决复制虚拟机时候网络不从eth0开始问题
  10. Node.js的安装