org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

问题:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cofco.graincircle.mbmp.mapper.UserMapper.insert at org.apache.ibatis.binding.MapperMethod SqlCommand.(MapperMethod.java:225) [mybatis3.4.5.jar:3.4.5]atorg.apache.ibatis.binding.MapperMethod.(MapperMethod.java:48) [mybatis3.4.5.jar:3.4.5]atorg.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65) [mybatis3.4.5.jar:3.4.5]atorg.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58) [mybatis3.4.5.jar:3.4.5]atcom.sun.proxy. S q l C o m m a n d . ( M a p p e r M e t h o d . j a v a : 225 )   [ m y b a t i s − 3.4.5. j a r : 3.4.5 ] a t o r g . a p a c h e . i b a t i s . b i n d i n g . M a p p e r M e t h o d . ( M a p p e r M e t h o d . j a v a : 48 )   [ m y b a t i s − 3.4.5. j a r : 3.4.5 ] a t o r g . a p a c h e . i b a t i s . b i n d i n g . M a p p e r P r o x y . c a c h e d M a p p e r M e t h o d ( M a p p e r P r o x y . j a v a : 65 )   [ m y b a t i s − 3.4.5. j a r : 3.4.5 ] a t o r g . a p a c h e . i b a t i s . b i n d i n g . M a p p e r P r o x y . i n v o k e ( M a p p e r P r o x y . j a v a : 58 )   [ m y b a t i s − 3.4.5. j a r : 3.4.5 ] a t c o m . s u n . p r o x y . Proxy65.insert(Unknown Source) ~[na:na]
解决方法:
mapper.xml的地址写有错误,应该写对路径,让服务能找到,如下:
mybatis.mapper-locations=classpath*:/mybatis/sqlmap/*Mapper.xml

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值