java.lang.Object | ||
↳ | org.springframework.context.config.AbstractFeatureSpecification | |
↳ | org.springframework.web.servlet.config.MvcDefaultServletHandler |
Specifies the Spring MVC "default-servlet-handler" container feature. The feature provides the following fine-grained configuration:
DefaultServletHttpRequestHandler
for serving static files by
forwarding to the Servlet container's "default" Servlet.
SimpleUrlHandlerMapping
to map the above request handler to "/**"
HttpRequestHandlerAdapter
to enable the DispatcherServlet to be
able to invoke the above request handler.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.config.AbstractFeatureSpecification
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of MvcDefaultServletHandler without. | |||||||||||
The name of the default Servlet to forward to for static resource requests.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.config.AbstractFeatureSpecification
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.config.FeatureSpecification
| |||||||||||
From interface
org.springframework.context.config.SourceAwareSpecification
|
Creates an instance of MvcDefaultServletHandler without.
If this constructor is used the DefaultServletHttpRequestHandler
will try to auto-detect the container's default Servlet at startup time
using a list of known names.
If the default Servlet cannot be detected because of using an unknown container or because it has been manually configured, an alternate constructor provided here can be used to specify the servlet name explicitly.
The name of the default Servlet to forward to for static resource requests.
The DefaultServletHttpRequestHandler
will try to auto-detect the
container's default Servlet at startup time using a list of known names.
However if the default Servlet cannot be detected because of using an unknown
container or because it has been manually configured, you can use this
constructor to set the servlet name explicitly.
defaultServletName | the name of the default servlet |
---|