Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Document how HandlerInterceptor should differentiate an ASYNC dispatch [SPR-12608] #17209
HandlerIntercetor#preHandle is invoked twice in an async scenario.
The problem is that it's not documented how to differentiate and avoid double-executing some logic. As it's a very common problem when using interceptors and using async handling, adding some explicit doc about how to handle would help.
Reference URL: https://github.com/flozano/spring-interceptor-async-test
Referenced from: commits 1803978