Mybatis错误org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
来源:互联网 发布:淘宝阿迪达斯折扣店 编辑:程序博客网 时间:2024/04/29 19:12
前言
今天遇到一个问题,之前的项目拆分模块化管理,新增使用maven,结果发现项目跑不起来了。
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
一般看到这个问题直接就知道是配置上的问题了。
正文
在网上也看了好几个文章,针对这类问题的原因也写了好些,博主一个个都照着试了下,坑比了,都不成功。
百思不得其解啊!!!
好了,最后对着文件目录结构一个个的看,发现。。。
我居然没有把mapper.xml文件放到Resources目录里面,好了,调整了结构,添加进去就ok了
下面提供所有解决此报错办法:
1. 检查xml文件所在的package名称是否和interface对应的package名称一一对应;
2. 检查xml文件中的namespace、resultMap和所有标签上引入类型的全路径是否在按住Ctrl可以点击到目标文件,如果不行就是错了;
3. 检查xml是否对应mapper.java的目录,一个是java目录,一个是resource目录;
阅读全文
0 0
- 关于mybatis “org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)” 错误的问题。
- mybatis整合springmvc时的错误org.apache.ibatis.binding.BindingException: Invalid bound statement (not found
- mybatis绑定错误:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- mybatis绑定错误:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- Mybatis错误org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- 关于mybatis “org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)” 错误的问题
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- 前端知识点总结(三)
- Android滚动选择器——水平滚动
- 一遍解析mr的shuffle的好文
- MYSQL总结(三)
- 零件加工
- Mybatis错误org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
- SPOJ Query on a tree
- 总分
- android路径动画学习笔记
- 用JS改变html样式
- input那些事
- HDU3966 Aragorn’s Story
- OpenGL蓝宝书源码学习(十九)第六章——LitTexture.cpp
- 正则