AspectJExpressionPointcut报错IllegalStateException解决

 o.s.aop.aspectj.AspectJExpressionPointcut:352 - Could not access current invocation - matching with limited context: java.lang.IllegalStateException: No MethodInvocation found: Check that an AOP invocation is in progress and that the ExposeInvocationInterceptor is upfront in the interceptor chain. Specifically, note that advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor! In addition, ExposeInvocationInterceptor and ExposeInvocationInterceptor.currentInvocation() must be invoked from the same thread.

 

定位过程(略)

 

解决方法:注解@Around改成了@After

 
posted @ 2023-07-11 14:56  剑握在手  阅读(52)  评论(0编辑  收藏  举报
返回顶部↑