@Configuration(proxyBeanMethods=false) @Conditional(value=org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration.DefaultDispatcherServletCondition.class) @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 |
---|---|
DispatcherServlet |
dispatcherServlet(WebMvcProperties webMvcProperties) |
MultipartResolver |
multipartResolver(MultipartResolver resolver) |
@Bean(name="dispatcherServlet") public DispatcherServlet dispatcherServlet(WebMvcProperties webMvcProperties)
@Bean @ConditionalOnBean(value=org.springframework.web.multipart.MultipartResolver.class) @ConditionalOnMissingBean(name="multipartResolver") public MultipartResolver multipartResolver(MultipartResolver resolver)