请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Invalid bound statement (not found)

图片描述
图片描述
这个方法不需要实现就能调用吗?我点开一个文档的时候,报这个错。view_count也没有 +1
报错信息:
2022-04-07 08:24:42.494 ERROR c.e.t.c.ControllerExceptionHandler:60 http-nio-8080-exec-7 系统异常:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.testwiki.mapper.DocMapperCust.increaseViewCount
at org.apache.ibatis.binding.MapperMethodSqlCommand.<init>(MapperMethod.java:235)atorg.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:53)atorg.apache.ibatis.binding.MapperProxy.lambdaSqlCommand.<init>(MapperMethod.java:235) at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:53) at org.apache.ibatis.binding.MapperProxy.lambdaSqlCommand.<init>(MapperMethod.java:235)atorg.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:53)atorg.apache.ibatis.binding.MapperProxy.lambdacachedInvoker0(MapperProxy.java:115)atjava.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)atorg.apache.ibatis.binding.MapperProxy.cachedInvoker(MapperProxy.java:102)atorg.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)atcom.sun.proxy.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.0(MapperProxy.java:115)atjava.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)atorg.apache.ibatis.binding.MapperProxy.cachedInvoker(MapperProxy.java:102)atorg.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)atcom.sun.proxy.Proxy88.increaseViewCount(Unknown Source)
at com.example.testwiki.service.DocService.findContent(DocService.java:117)
at com.example.testwiki.controller.DocController.findContent(DocController.java:96)
at com.example.testwiki.controller.DocControllerFastClassBySpringCGLIBFastClassBySpringCGLIBFastClassBySpringCGLIB2a34457d.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)atorg.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)atorg.springframework.aop.framework.CglibAopProxyCglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:58)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
at com.example.testwiki.aspect.LogAspect.doAround(LogAspect.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)

正在回答 回答被采纳积分+3

1回答

提问者 蜗牛快跑__ 2022-04-07 08:43:07

问题已解决。是我自己在DocMapperCust.xml文件中配置写错了

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信