@Configuration @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
Constructor and Description |
---|
DispatcherServletConfiguration(WebMvcProperties webMvcProperties,
ServerProperties serverProperties) |
Modifier and Type | Method and Description |
---|---|
DispatcherServlet |
dispatcherServlet() |
DispatcherServletPathProvider |
mainDispatcherServletPathProvider() |
MultipartResolver |
multipartResolver(MultipartResolver resolver) |
public DispatcherServletConfiguration(WebMvcProperties webMvcProperties, ServerProperties serverProperties)
@Bean(name="dispatcherServlet") public DispatcherServlet dispatcherServlet()
@Bean @ConditionalOnBean(value=org.springframework.web.multipart.MultipartResolver.class) @ConditionalOnMissingBean(name="multipartResolver") public MultipartResolver multipartResolver(MultipartResolver resolver)
@Bean public DispatcherServletPathProvider mainDispatcherServletPathProvider()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.