postHandle()
Learn postHandle() (Interceptors, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes postHandle() is a HandlerInterceptor callback that runs after the controller method returned but before the view is rendered. It receives the ModelAndView , so you can add shared model attributes (such as the current year or the user name) for every page. It is skipped when the controller throws an exception or when preHandle() returned false .