这个方法不需要实现就能调用吗?我点开一个文档的时候,报这个错。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)