Class DispatcherServletAutoConfiguration.DispatcherServletConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration.DispatcherServletConfiguration
- Enclosing class:
- DispatcherServletAutoConfiguration
@Configuration @Conditional(org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration.DefaultDispatcherServletCondition.class) @ConditionalOnClass(javax.servlet.ServletRegistration.class) @EnableConfigurationProperties({HttpProperties.class,WebMvcProperties.class}) protected static class DispatcherServletAutoConfiguration.DispatcherServletConfiguration extends Object
Constructor Summary
Constructors Constructor Description DispatcherServletConfiguration(HttpProperties httpProperties, WebMvcProperties webMvcProperties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.DispatcherServlet
dispatcherServlet()
org.springframework.web.multipart.MultipartResolver
multipartResolver(org.springframework.web.multipart.MultipartResolver resolver)
Constructor Detail
DispatcherServletConfiguration
public DispatcherServletConfiguration(HttpProperties httpProperties, WebMvcProperties webMvcProperties)
Method Detail
dispatcherServlet
@Bean(name="dispatcherServlet") public org.springframework.web.servlet.DispatcherServlet dispatcherServlet()
multipartResolver
@Bean @ConditionalOnBean(org.springframework.web.multipart.MultipartResolver.class) @ConditionalOnMissingBean(name="multipartResolver") public org.springframework.web.multipart.MultipartResolver multipartResolver(org.springframework.web.multipart.MultipartResolver resolver)