@Configuration @Conditional(value=org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration.DefaultDispatcherServletCondition.class) @ConditionalOnClass(value=javax.servlet.ServletRegistration.class) @EnableConfigurationProperties(value={HttpProperties.class,WebMvcProperties.class}) protected static class DispatcherServletAutoConfiguration.DispatcherServletConfiguration extends Object
Constructor and Description |
---|
DispatcherServletConfiguration(HttpProperties httpProperties,
WebMvcProperties webMvcProperties) |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.DispatcherServlet |
dispatcherServlet() |
org.springframework.web.multipart.MultipartResolver |
multipartResolver(org.springframework.web.multipart.MultipartResolver resolver) |
public DispatcherServletConfiguration(HttpProperties httpProperties, WebMvcProperties webMvcProperties)
@Bean(name="dispatcherServlet") public org.springframework.web.servlet.DispatcherServlet dispatcherServlet()
@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 © 2020 Pivotal Software, Inc.. All rights reserved.