Simple dispatcher servlet
An HTTP servlet that delegates all HTTP requests to a single handler.
Creates a HTTP servlet that delegates all request handling to a single Spring Web MVC Controller
or Spring Web HttpRequestHandler
, for example a HTTP inbound gateway or a HTTP inbound channel adapter.
Name
The (unique) name for this servlet.
Required
Handler
The Spring Web MVC Controller
or Spring Web HttpRequestHandler
implementation that is used by this class for handling the HTTP request.
Required
Sets the resolvers to be used by the controller for resolving view names.
The resolvers will be called in the list order until the name is resolved. If the name cannot be resolved by any of the resolvers, an exception is thrown when view name resolution is required.
Resolvers:
- Bean name view resolver Interprets a view name as bean name in the current application context.
No resolvers are set by default.
Sets the resolvers to use for resolving exceptions thrown during handler execution.
The resolvers will be called in the list order until the exception is resolved. If the exception cannot be resolved by any of the resolvers, it is just thrown by this servlet.
Resolvers:
- Default handler exception resolver Resolves standard Spring exceptions and translates them to corresponding HTTP status codes.
No resolvers are set by default.