javaweb icon indicating copy to clipboard operation
javaweb copied to clipboard

慎用@Order

Open www1350 opened this issue 7 years ago • 0 comments

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!

https://jira.spring.io/browse/SPR-12351

@Order一定不要设置为Ordered.HIGHEST_PRECEDENCE ,而是设置为Ordered.HIGHEST_PRECEDENCE + 1。血的教训

www1350 avatar Jul 24 '17 16:07 www1350