Skip to main content

afterCompletion()

Learn afterCompletion() (Interceptors, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes afterCompletion() is the last HandlerInterceptor callback; it runs after the view is rendered, or after an exception was handled. It is called whenever preHandle() of that interceptor returned true , even if the controller threw an exception. The Exception ex parameter is non-null when the handler failed and no resolver has already handled it.

More lessons in Interceptors