@Configuration @Conditional(value=org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration.DispatcherServletRegistrationCondition.class) @ConditionalOnClass(value=javax.servlet.ServletRegistration.class) @EnableConfigurationProperties(value=WebMvcProperties.class) @Import(value=DispatcherServletAutoConfiguration.DispatcherServletConfiguration.class) protected static class DispatcherServletAutoConfiguration.DispatcherServletRegistrationConfiguration extends Object
Constructor and Description |
---|
DispatcherServletRegistrationConfiguration(ServerProperties serverProperties,
WebMvcProperties webMvcProperties,
org.springframework.beans.factory.ObjectProvider<MultipartConfigElement> multipartConfigProvider) |
Modifier and Type | Method and Description |
---|---|
ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet> |
dispatcherServletRegistration(org.springframework.web.servlet.DispatcherServlet dispatcherServlet) |
public DispatcherServletRegistrationConfiguration(ServerProperties serverProperties, WebMvcProperties webMvcProperties, org.springframework.beans.factory.ObjectProvider<MultipartConfigElement> multipartConfigProvider)
@Bean(name="dispatcherServletRegistration") @ConditionalOnBean(value=org.springframework.web.servlet.DispatcherServlet.class, name="dispatcherServlet") public ServletRegistrationBean<org.springframework.web.servlet.DispatcherServlet> dispatcherServletRegistration(org.springframework.web.servlet.DispatcherServlet dispatcherServlet)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.