Spring MVC special bean types in the WebApplicationContext
March 30, 2012 10:23:21 Last update: March 30, 2012 10:23:21
These bean types are essential for the Spring MVC framework. I copied them here from the Spring Documentation for quick reference.
Spring MVC provides a list of default beans to use if you don't configure any.
| Bean type | Explanation |
|---|---|
| HandlerMapping | Maps incoming requests to handlers and a list of pre- and post-processors (handler interceptors) based on some criteria the details of which vary by HandlerMapping implementation. The most popular implementation supports annotated controllers but other implementations exists as well. |
| HandlerAdapter | Helps the DispatcherServlet to invoke a handler mapped to a request regardless of the handler is actually invoked. For example, invoking an annotated controller requires resolving various annotations. Thus the main purpose of a HandlerAdapter is to shield the DispatcherServlet from such details. |
| HandlerExceptionResolver | Maps exceptions to views also allowing for more complex exception handling code. |
| ViewResolver | Resolves logical String-based view names to actual View types. |
| LocaleResolver | Resolves the locale a client is using, in order to be able to offer internationalized views |
| ThemeResolver | Resolves themes your web application can use, for example, to offer personalized layouts |
| MultipartResolver | Parses multi-part requests for example to support processing file uploads from HTML forms. |
| FlashMapManager | Stores and retrieves the "input" and the "output" FlashMap that can be used to pass attributes from one request to another, usually across a redirect. |
Spring MVC provides a list of default beans to use if you don't configure any.