@Configuration
@ConditionalOnWebApplication
@ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class,org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class})
public class WebMvcAutoConfigurationAfter
extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebMvcAutoConfigurationAfter.WebMvcAutoConfigurationAdapterCustom |
| Constructor and Description |
|---|
WebMvcAutoConfigurationAfter() |
| Modifier and Type | Method and Description |
|---|---|
OrderedForwardedHeaderFilter |
forwardedHeaderFilter() |
OrderedInspectionFilter |
inspectionFilter() |
JsonpResponseBodyAdvice |
jsonpResponseBodyAdvice() |
MediaTypeResponseBodyAdvice |
mediaTypeResponseBodyAdvice() |
OrderedMultipartFilter |
multipartFilter(org.springframework.context.ApplicationContext applicationContext) |
PageResponseBodyAdvice |
pageResponseBodyAdvice() |
OrderedTimeZoneAwareLocaleChangeFilter |
timeZoneAwareLocaleChangeFilter(org.springframework.context.ApplicationContext applicationContext) |
OrderedTraceFilter |
traceFilter() |
@Bean
@ConfigurationProperties(value="spring.mvc.filter.trace-filter")
@ConditionalOnProperty(prefix="spring.mvc.filter.trace-filter",
name="enabled",
matchIfMissing=true)
public OrderedTraceFilter traceFilter()
@Bean @ConfigurationProperties(value="spring.mvc.filter.inspection") public OrderedInspectionFilter inspectionFilter()
@Bean @ConditionalOnBean(value=org.springframework.web.multipart.MultipartResolver.class) @ConfigurationProperties(value="spring.mvc.filter.multipart-filter") @ConditionalOnProperty(prefix="spring.mvc.filter.multipart-filter", name="enabled", matchIfMissing=true) public OrderedMultipartFilter multipartFilter(org.springframework.context.ApplicationContext applicationContext)
@Bean
@ConditionalOnBean(value=org.springframework.web.servlet.LocaleResolver.class)
@ConfigurationProperties(value="spring.mvc.filter.time-zone-aware-locale-change-filter")
@ConditionalOnProperty(prefix="spring.mvc.filter.time-zone-aware-locale-change-filter",
name="enabled",
matchIfMissing=true)
public OrderedTimeZoneAwareLocaleChangeFilter timeZoneAwareLocaleChangeFilter(org.springframework.context.ApplicationContext applicationContext)
@Bean
@ConfigurationProperties(value="spring.mvc.filter.forwarded-header-filter")
@ConditionalOnProperty(prefix="spring.mvc.filter.forwarded-header-filter",
name="enabled",
matchIfMissing=true)
public OrderedForwardedHeaderFilter forwardedHeaderFilter()
@Bean
@ConfigurationProperties(value="spring.mvc.advice.media-type-response-body")
@ConditionalOnProperty(prefix="spring.mvc.advice.media-type-response-body",
name="enabled",
matchIfMissing=true)
public MediaTypeResponseBodyAdvice mediaTypeResponseBodyAdvice()
@Bean
@ConditionalOnClass(name="org.springframework.data.domain.Page")
@ConfigurationProperties(value="spring.mvc.advice.page-response-body")
@ConditionalOnProperty(prefix="spring.mvc.advice.page-response-body",
name="enabled",
matchIfMissing=true)
public PageResponseBodyAdvice pageResponseBodyAdvice()
@Bean
@ConfigurationProperties(value="spring.mvc.advice.jsonp-response-body")
@ConditionalOnProperty(prefix="spring.mvc.advice.jsonp-response-body",
name="enabled",
matchIfMissing=true)
public JsonpResponseBodyAdvice jsonpResponseBodyAdvice()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.