Class DispatcherServletAutoConfiguration

java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration

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
  • Field Details

    • DEFAULT_DISPATCHER_SERVLET_BEAN_NAME

      public static final String 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

      public static final String DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME
      The bean name for a ServletRegistrationBean for the DispatcherServlet "/".
      See Also:
  • Constructor Details

    • DispatcherServletAutoConfiguration

      public DispatcherServletAutoConfiguration()