You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I read section 13.4.3 "Intercepting requests - the HandlerInterceptor interface", I am left wondering, "Do the interceptors specified in the handler mapping bean get invoked for every request handled by the DisplatcherServlet, or do they just get invoked when a request matches one of the URL patterns specified in the mappings property of the handler mapping bean?"
I think it would be a good idea to answer this question in the Spring reference document under section 13.4.3.
Thanks! And, Great work! The Spring Framework project has been so helpful!
This seems more a lack of understanding of the handler mapping itself. The doc seems reasonably clear that the interceptor is part of the handler mapping, and hence is only applied to requests which are handled by that mapping. However, I've expanded the text a bit to spell this out, particularly w.r.t. the sample code.
Stephen M. Wick opened SPR-5158 and commented
When I read section 13.4.3 "Intercepting requests - the HandlerInterceptor interface", I am left wondering, "Do the interceptors specified in the handler mapping bean get invoked for every request handled by the DisplatcherServlet, or do they just get invoked when a request matches one of the URL patterns specified in the mappings property of the handler mapping bean?"
I think it would be a good idea to answer this question in the Spring reference document under section 13.4.3.
Thanks! And, Great work! The Spring Framework project has been so helpful!
Stephen
Affects: 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9
Referenced from: commits 95ad3c9
The text was updated successfully, but these errors were encountered: