From the course: Spring: Spring MVC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

DispatcherServlet and special bean types

DispatcherServlet and special bean types

From the course: Spring: Spring MVC

Start my 1-month free trial

DispatcherServlet and special bean types

- [Instructor] This module is going to talk about exception handling in the Spring MVC Framework. Now, before looking at that, let's just go through a few special bean types. Some of them we've already known before, and some of them are new. The first one is HandlerMapping. We have seen this as a part of the Spring MVC architecture before. This is used to map the incoming request to a specific handler, which is a controller. It may also include pre- and post-processing components like filters, or they are called interceptors in Spring MVC. Now we haven't looked at interceptors yet, but we will at a later part in this course. HandlerAdapter is supposed to help the DispatcherServlet to invoke the handler, and this is regardless of how the handler will be invoked. For example, sometimes the handlers are resolved by a annotations, sometimes by XML, so all of these details are hidden from the DispatcherServlet, and…

Contents