mybatis错误:Invalid bound statement (not found)
来源:互联网 发布:中英文小说阅读软件 编辑:程序博客网 时间:2024/05/27 16:42
如果出现:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
一般的原因是Mapper interface和xml文件的定义对应不上,需要检查包名,namespace,函数名称等能否对应上,需要比较细致的对比,我经常就是写错了一两个字母搞的很长时间找不到错误
按以下步骤一一执行:
1:检查xml文件所在的package名称是否和interface对应的package名称一一对应
2:检查xml文件的namespace是否和xml文件的package名称一一对应
3:检查函数名称能否对应上
4:去掉xml文件中的中文注释
5:随意在xml文件中加一个空格或者空行然后保存
一般来说到此就可以排除错误了
转载:http://blog.csdn.net/softwarehe/article/details/8889206
0 0
- mybatis错误: Invalid bound statement (not found)
- mybatis错误:Invalid bound statement (not found)
- mybatis错误:Invalid bound statement (not found)
- mybatis错误:Invalid bound statement (not found)
- mybatis错误 Invalid bound statement (not found)
- [MyBatis]Invalid bound statement (not found)错误
- mybatis错误:Invalid bound statement (not found)
- MyBatis Invalid bound statement (not found)错误
- mybatis错误:Invalid bound statement (not found)
- mybatis错误:Invalid bound statement (not found)
- MyBatis绑定错误:Invalid bound statement (not found)
- [MyBatis]诡异的Invalid bound statement (not found)错误
- MyBatis 诡异的Invalid bound statement (not found)错误
- Mybatis - 在idea中错误:Invalid bound statement (not found)
- Mybatis框架的错误:Invalid bound statement not found
- Mybatis在idea中错误:Invalid bound statement (not found)
- mybatis绑定错误-- Invalid bound statement (not found)
- Mybatis在idea中错误:Invalid bound statement (not found)
- python语法[module/package+import]
- linux定义变量内存地址分配顺序
- 斯坦福机器学习公开课6-x逻辑回归
- 移动端的emoji表情符号插入MySQL数据库失败
- 缓存管理器CacheManager
- mybatis错误:Invalid bound statement (not found)
- android NDK开发demo(基于android )
- angular.js
- Linux多线程——使用互斥量同步线程
- 写给 iOS 开发者看的 HTTPS 指南
- wxWidgets
- Android开发——监听Android手机的网络状态
- HTML5的本地存储
- 安装ARM EABI v7a System Image后 Android AVD还会出现"No system images installed for this target"