@Configuration @ConditionalOnClass(value=javax.servlet.ServletRegistration.class) @EnableConfigurationProperties(value=WebMvcProperties.class) protected static class DispatcherServletAutoConfiguration.DispatcherServletConfiguration extends Object
Constructor and Description |
---|
DispatcherServletConfiguration(ServerProperties server,
WebMvcProperties webMvcProperties,
ObjectProvider<MultipartConfigElement> multipartConfigProvider) |
Modifier and Type | Method and Description |
---|---|
DispatcherServlet |
dispatcherServlet() |
ServletRegistrationBean |
dispatcherServletRegistration() |
MultipartResolver |
multipartResolver(MultipartResolver resolver) |
public DispatcherServletConfiguration(ServerProperties server, WebMvcProperties webMvcProperties, ObjectProvider<MultipartConfigElement> multipartConfigProvider)
@Bean(name="dispatcherServlet") public DispatcherServlet dispatcherServlet()
@Bean(name="dispatcherServletRegistration") public ServletRegistrationBean dispatcherServletRegistration()
@Bean @ConditionalOnBean(value=org.springframework.web.multipart.MultipartResolver.class) @ConditionalOnMissingBean(name="multipartResolver") public MultipartResolver multipartResolver(MultipartResolver resolver)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.