Class DispatcherServletAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration
@AutoConfigureOrder(-2147483648)
@AutoConfiguration(after=ServletWebServerFactoryAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(org.springframework.web.servlet.DispatcherServlet.class)
public class DispatcherServletAutoConfiguration
extends Object
Auto-configuration
for the Spring
DispatcherServlet
. Should work for a standalone application where an embedded
web server is already present and also for a deployable application using
SpringBootServletInitializer
.- Since:
- 2.0.0
- Author:
- Phillip Webb, Dave Syer, Stephane Nicoll, Brian Clozel
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static class
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
The bean name for a DispatcherServlet that will be mapped to the root URL "/".- See Also:
-
DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME
The bean name for a ServletRegistrationBean for the DispatcherServlet "/".- See Also:
-
-
Constructor Details
-
DispatcherServletAutoConfiguration
public DispatcherServletAutoConfiguration()
-