Mybatis报错: Invalid bound statement (not found)...
生活随笔
收集整理的這篇文章主要介紹了
Mybatis报错: Invalid bound statement (not found)...
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
報(bào)錯(cuò)內(nèi)容如下
Rerun updateInfoByUid() cn.cyjt.shoot.mapper.UserMapperTests updateInfoByUid(cn.cyjt.shoot.mapper.UserMapperTests) org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cn.cyjt.shoot.mapper.UserMapper.updateInfoByUidat org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:235)at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:53)at org.apache.ibatis.binding.MapperProxy.lambda$cachedInvoker$0(MapperProxy.java:115)at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)at org.apache.ibatis.binding.MapperProxy.cachedInvoker(MapperProxy.java:102)at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)at com.sun.proxy.$Proxy77.updateInfoByUid(Unknown Source)at cn.cyjt.shoot.mapper.UserMapperTests.updateInfoByUid(UserMapperTests.java:67)。。。。。問題原因:
綁定異常:無效的綁定語(yǔ)句(未找到):cyjt.拍攝.mapper.UserMapper.updateInfoByUid解決方法:
在resource目錄下的mapper.xml 文件里缺少了sql語(yǔ)句
補(bǔ)上去即可。
如:
總結(jié)
以上是生活随笔為你收集整理的Mybatis报错: Invalid bound statement (not found)...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 服务器向客户端不响应为null的属性(为
- 下一篇: Error creating bean