@Configuration public class SpringDataWebConfiguration extends WebMvcConfigurerAdapter
PageableHandlerMethodArgumentResolver
,
SortHandlerMethodArgumentResolver
and DomainClassConverter
.Constructor and Description |
---|
SpringDataWebConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) |
void |
addFormatters(FormatterRegistry registry) |
void |
extendMessageConverters(List<HttpMessageConverter<?>> converters) |
PageableHandlerMethodArgumentResolver |
pageableResolver() |
SortHandlerMethodArgumentResolver |
sortResolver() |
addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
@Bean public PageableHandlerMethodArgumentResolver pageableResolver()
@Bean public SortHandlerMethodArgumentResolver sortResolver()
public void addFormatters(FormatterRegistry registry)
addFormatters
in interface WebMvcConfigurer
addFormatters
in class WebMvcConfigurerAdapter
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers
in interface WebMvcConfigurer
addArgumentResolvers
in class WebMvcConfigurerAdapter
public void extendMessageConverters(List<HttpMessageConverter<?>> converters)
extendMessageConverters
in interface WebMvcConfigurer
extendMessageConverters
in class WebMvcConfigurerAdapter
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.