【SSM】nested exception is org.apache.ibatis.binding.BindingException: Invalid boun原因总结
今天在整合SSM框架时,遇到如下问题,尝试了网上很多方法,终于成功解决,相信以下方法可以解决大多数人的问题。
排查方法如下:
1、mapper接口和mapper.xml是否在同一个包(package)下?名字是否一样(仅后缀不同)?
2、mapper.xml的命名空间(namespace)是否跟mapper接口的包名一致?
3、接口的方法名,与xml中的一条sql标签的id一致 (我个人是由于这个原因,在mapper.xml的配置文件中id与接口id没能一致,导致自己的insertUser方法出现问题!)
4、如果接口中的返回值List集合(不知道其他集合也是),那么xml里面的配置,尽量用resultMap(保证resultMap配置正确),不要用resultType
5、如果你的项目是maven项目,请你在编译后,到接口所在target目录看一看,很有可能是没有mapper生产对应的xml文件,因为maven默认是不编译的,因此,你需要在你的pom.xml的里面,加这么一段:
<build><resources><resource><directory>src/main/java</directory><includes><include>**/*.properties</include><include>**/*.xml</include></includes><filtering>false</filtering></resource></resources>
</build>
【SSM】nested exception is org.apache.ibatis.binding.BindingException: Invalid boun原因总结相关推荐
- nested exception is org.apache.ibatis.binding.BindingException: Invalid boun
异常 nested exception is org.apache.ibatis.binding.BindingException: Invalid boun 在测试Spring MVC+Mybati ...
- 解决mapper绑定异常:nested exception is org.apache.ibatis.binding.BindingException:
ssm 访问时一直报错,找不到mapper nested exception is org.apache.ibatis.binding.BindingException: Invalid boun 原 ...
- nested exception is org.apache.ibatis.binding.BindingException: Parameter 'xxxx'解决方案
最近写一个ssm项目,遇到了一个没遇到过的问题: nested exception is org.apache.ibatis.binding.BindingException: Parameter ' ...
- 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 ...
- nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘email‘ not found. Availab
在写筛选查询时,参数为对象,显示此参数找不到,报这个错误,几经研究查询 ERROR o.jeecg.common.exception.JeecgBootExceptionHandler:79 - ne ...
- 错误nested exception is org.apache.ibatis.binding.BindingException
错误 错误:nested exception is org.apache.ibatis.binding.BindingException: Parameter 'name' not found. Av ...
- nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘xxx‘ not found错误的详细解决方法
文章目录 1. 复现错误 2. 分析错误 3. 解决错误 4. 文末补充 1. 复现错误 今天写好导入hive表的回调接口,如下代码所示: /*** hive表导入的回调接口** @author su ...
- nested exception is org.apache.ibatis.binding.BindingException:
用mybatis的xml文件进行ORM模式,出现下面错误 nested exception is org.apache.ibatis.binding.BindingException: Paramet ...
- 【JAVA】解决mapper绑定异常:nested exception is org.apache.ibatis.binding.BindingException:
异常: 原因: 由于mapper接口编译后在同一个目录下没有找到mapper映射文件而出现的.由于maven工程在默认情况下src/main/java目录下的mapper文件是不发布到target目录 ...
最新文章
- ng-repeat 的重复问题
- 正确率 精度 召回率 错误率
- 【数据库bug修复】——Authentication plugin ‘caching_sha2_password‘ is not supported
- *p++和*(p++)的区别_同是华为顶级旗舰,P系和Mate系谁最值得购买?明白这点很重要!...
- Linux 内核系统架构
- 统计mysql里每条SQL语句执行的时间
- 再说invoke和begininvoke
- 固定频率调用接口方案
- BZOJ44084299[Fjoi 2016]神秘数——主席树
- 8086汇编语言将一串字符串内小写字母转换为大写字母,其余字符不变(全注释)
- 从“递归结构”到解汉诺塔问题的求解
- php 对象转xml字符串_php方法simplexml_load_string()解析xml转数组失败
- js中函数的三种定义方式、函数声明、函数同名重复、函数删除、
- Hive学习笔记(二)——数据模型
- 【毕设狗】【单片机毕业设计】基于单片机的红外遥控器-实物设计
- 快启动win10pe制作详细图文教程
- EasyAR WebAR 开发微信小程序记录
- MB102大面包板+电源模块 使用说明
- 几种能让Mac“飞”起来的系统空间清理方法
- 如何快速实现增长App用户量?
热门文章
- Excel单元格部分字体颜色Python实现
- 使用node.js http-server启动了,但是网页打开显示无法正常工作
- 积跬步以至千里:美柚程序化合作交流会在厦举办
- 58HouseSearch项目迁移到asp.net core
- php电商实验总结,电子商务实验心得体会.doc
- 虚拟化平台——KVM
- 20160821搬离徐汇区田林路田林十一村,前往一个新的居住地--普陀区真南路李子园小区
- 效果图如何做出插画风格?SketchUp 插画风效果图渲染技巧
- 大学计算机基础 百科园,李瑞海|
- python爬虫防呆笔记:正则表达式篇之一