mybatis使用bug:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
2016-06-15 09:43
946 查看
Invalid bound statement (not found): hsf.fmhealth.dao.user.XXXDao.queryXX
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): hsf.XX.dao.user.XXDao.queryXX
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51) ~[mybatis-3.2.8.jar:3.2.8]
at com.sun.proxy.$Proxy86.queryXX(Unknown Source) ~[na:na]
xml中id和dao中配置的方法名一定要一致,否则报错如上
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): hsf.XX.dao.user.XXDao.queryXX
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:189) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:43) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:58) ~[mybatis-3.2.8.jar:3.2.8]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51) ~[mybatis-3.2.8.jar:3.2.8]
at com.sun.proxy.$Proxy86.queryXX(Unknown Source) ~[na:na]
xml中id和dao中配置的方法名一定要一致,否则报错如上
相关文章推荐
- ubuntu下修改apache2.4的rewrite
- Apache Mahout 实现的机器学习算法
- 消息订阅发布系统Apache Kafka分布式集群环境搭建和简单测试
- linux下apache启动问题(dummy-host.example.com does not exist, Could not..127.0.0.1 for ServerName)
- Apache静态编译与动态编译区别
- linux下用Apache一个IP多个网站多域名配置方法
- ios开源框架——WebViewJavascriptBridge& OVGap&apache cordova& JavaScriptCore(原生) (JS与iOS Native Code互调)
- Apache Maven与Eclipse整合简易教程
- Linux 系统 apache 重启
- centos 5.0 编译安装apache 2.2.6+php5.2.5+mysql5.0.46+ZEND
- apache kafka消息服务
- Apache服务器的安装与配置
- 【转】使用Apache Kylin搭建企业级开源大数据分析平台
- Apache Kafka:下一代分布式消息系统
- Log4j使用详解
- Apache开启伪静态后接受不到URL问号后的参数,静态资源无法访问
- Apache服务器三种配置文件
- linux 任务计划 apache日志中每分钟访问某页面超过10,把IP屏蔽掉,并发邮件通知
- Apache POI
- apache 和weblogic 负载均衡