spring boot aop 与 filter 共存

在项目中两者共存的情况下
对于post请求,在Aspect下AfterReturning的时候, 使用 joinPoint.getArgs()获取post参数,异常
It is illegal to call this method if the current request is not in asynchronous mode (i.e. isAsyncStarted() returns false)] with root cause java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode (i.e. isAsyncStarted() returns false)
其中,重要的点在 Aspect WebLogAspect.getArgs(WebLogAspect.java:59),
之后再AuthFilter.doFilter(AuthFilter.java:63)
这个是什么原因呢

阅读 5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题