org.apache.ibatis.binding.BindingException原因总结
排查方法如下:
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原因总结相关推荐
- (原创)常见报错不常见原因之——org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
错误日志:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)..... 常见原因:由于myb ...
- 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 ...
- mybatis配置时出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)...
如果出现: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 一般的原因是Mapper i ...
- 解决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 ...
- 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 ...
- 解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) ...
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. org.apache.ibatis.binding.BindingException: Invali ...
- 解决 : org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 报错: org.apache.ibatis.binding.BindingException: ...
- 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 ...
- 解决:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
之前有用过SSM框架,并且自己搭过,完全没问题.工作之后一直用maven,前两天在maven下搭建了一个SSM框架,但是一直报绑定失效错误,具体错误如下: org.apache.ibatis.bind ...
最新文章
- 在Windows7/10上通过VS2013编译FFmpeg 4.1.3源码操作步骤
- 在windows下如何快速搭建web.py开发框架
- C++ 数字、string 简便互转
- 基于matlab的图解粒度参数计算,基于MATLAB的图解粒度参数计算-热带地理.PDF
- Visual Studio 2017 15.9预览版3支持ARM64 for UWP
- redis相对于mysql有什么劣势
- AndroidStudio安卓原生开发_Activity的启动模式standard和一部分singleTop启动模式---Android原生开发工作笔记86
- 数据中心高速需求 推动光通信迈向100Gbps
- node.js 模块_如何创建Node JS可重用模块
- 【Codeforces Round #555 (Div. 3) G】Inverse of Rows and Columns【bitset优化暴力...】
- SIM-MICRO-SIM- NANO SIM 区别
- 数据增强:模拟雨天算法Python
- 区块链对于相关流程和环节的联系,让元宇宙不再是虚无缥缈的概念
- 用户验收测试要求目标
- 腾讯程序员月薪7万,小编感觉自己像码畜...
- 【原创游戏】迷踪失路——恐怖风格的第一人称迷宫游戏
- 热议!211高校近200名硕博新生开学无宿舍住,需校外租房...
- office2016专业增强版语言包 VOL
- Pycharm导入conda虚拟环境时报错error code:1
- 利用定时器实现倒计时