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