AspectJExpressionPointcut报错IllegalStateException解决

发布时间 2023-07-11 15:07:23作者: 剑握在手

 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