类 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
.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Dave Syer, Stephane Nicoll, Brian Clozel
-
字段详细资料
-
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
The bean name for a DispatcherServlet that will be mapped to the root URL "/".- 另请参阅:
-
DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME
The bean name for a ServletRegistrationBean for the DispatcherServlet "/".- 另请参阅:
-
-
构造器详细资料
-
DispatcherServletAutoConfiguration
public DispatcherServletAutoConfiguration()
-