From 5f97db9f05401971196db17697e161abb79fe6b4 Mon Sep 17 00:00:00 2001 From: sangyongchoi Date: Fri, 2 Jul 2021 23:28:37 +0900 Subject: [PATCH] Added description for HandlerInterceptor --- .../java/org/springframework/web/servlet/HandlerInterceptor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerInterceptor.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerInterceptor.java index 355a5da6d669..6bbf69b3ad07 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerInterceptor.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerInterceptor.java @@ -102,6 +102,7 @@ default boolean preHandle(HttpServletRequest request, HttpServletResponse respon /** * Intercept the execution of a handler. Called after HandlerAdapter actually * invoked the handler, but before the DispatcherServlet renders the view. + * In addition does not run if handler throws exception. * Can expose additional model objects to the view via the given ModelAndView. *

DispatcherServlet processes a handler in an execution chain, consisting * of any number of interceptors, with the handler itself at the end.