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 @   剑握在手  阅读(157)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
历史上的今天:
2019-07-11 SonarQube代码评审工具简介
2018-07-11 Spring Boot动态修改日志级别
返回顶部↑
点击右上角即可分享
微信分享提示