@AutoConfigureOrder(value=-2147483648) @Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.springframework.web.servlet.DispatcherServlet.class) @AutoConfigureAfter(value=ServletWebServerFactoryAutoConfiguration.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
.Modifier and Type | Class and Description |
---|---|
protected static class |
DispatcherServletAutoConfiguration.DispatcherServletConfiguration |
protected static class |
DispatcherServletAutoConfiguration.DispatcherServletRegistrationConfiguration |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
The bean name for a DispatcherServlet that will be mapped to the root URL "/".
|
static String |
DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME
The bean name for a ServletRegistrationBean for the DispatcherServlet "/".
|
Constructor and Description |
---|
DispatcherServletAutoConfiguration() |
public static final String DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
public static final String DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.