mybatis一个怪异的问题: Invalid bound statement not found":
来源:互联网 发布:三维家软件多少钱 编辑:程序博客网 时间:2024/06/05 07:17
ssm中报一下错误:
invalid bound statement (not found): me.tspace.pm.dao.userdao.getuser
at org.apache.ibatis.binding.mappermethod$sqlcommand.<init>(mappermethod.java:178)
at org.apache.ibatis.binding.mappermethod.<init>(mappermethod.java:38)
at org.apache.ibatis.binding.mapperproxy.cachedmappermethod(mapperproxy.java:49)
at org.apache.ibatis.binding.mapperproxy.invoke(mapperproxy.java:42)
at $proxy22.getuser(unknown source)
........................
........................
caused by: java.lang.illegalargumentexception: mapped statements collection does not contain value for me.tspace.pm.dao.userdao.getuser
at org.apache.ibatis.session.configuration$strictmap.get(configuration.java:775)
at org.apache.ibatis.session.configuration.getmappedstatement(configuration.java:615)
at org.apache.ibatis.session.configuration.getmappedstatement(configuration.java:608)
at org.apache.ibatis.binding.mappermethod$sqlcommand.<init>(mappermethod.java:176)
... 34 more
三种情况:
1.
<mapper namespace="me.tspace.pm.dao.userdao">
mapper的namespace写的不对!!!注意系修改。
2.
userdao的方法在userdao.xml中没有,然后执行userdao的方法会报此
3. userdao的方法返回值是list<user>,而select元素没有正确配置resultmap,或者只配置resulttype!
4. 如果你确认没有以上问题,请任意修改下对应的xml文件,比如删除一个空行,保存.问题解决...
- 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 作者及来源: babyblue
- 关于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 BindingException: 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)
- 实现简单轮播器
- 关于销售订单的状态
- opencv3.1.0+win7+64bit +vs2015配置
- 构建属于自己的elasticsearch Docker镜像
- dylibs/frameworks are only supported on iOS 8.0 and later
- mybatis一个怪异的问题: Invalid bound statement not found":
- 自己打包程序报错问题查找思路
- js图片轮播可控制是否循环轮播,点击左右按钮切换
- android AsyncTask
- Log4j 日志文件Linux/Mac/Windows通用存放位置设置
- C#修饰符详解
- python字典的get函数和iteritems函数
- Keep On Movin
- 7月