@Configuration(proxyBeanMethods=false) public class SpringDataWebConfiguration extends Object implements WebMvcConfigurer, BeanClassLoaderAware
PageableHandlerMethodArgumentResolver
,
SortHandlerMethodArgumentResolver
and DomainClassConverter
.Constructor and Description |
---|
SpringDataWebConfiguration(ApplicationContext context,
ObjectFactory<ConversionService> conversionService) |
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) |
void |
addFormatters(FormatterRegistry registry) |
protected void |
customizePageableResolver(PageableHandlerMethodArgumentResolver pageableResolver) |
protected void |
customizeSortResolver(SortHandlerMethodArgumentResolver sortResolver) |
void |
extendMessageConverters(List<HttpMessageConverter<?>> converters) |
PageableHandlerMethodArgumentResolver |
pageableResolver() |
void |
setBeanClassLoader(ClassLoader classLoader) |
SortHandlerMethodArgumentResolver |
sortResolver() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
public SpringDataWebConfiguration(ApplicationContext context, @Qualifier(value="mvcConversionService") ObjectFactory<ConversionService> conversionService)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
@Bean public PageableHandlerMethodArgumentResolver pageableResolver()
@Bean public SortHandlerMethodArgumentResolver sortResolver()
public void addFormatters(FormatterRegistry registry)
addFormatters
in interface WebMvcConfigurer
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers
in interface WebMvcConfigurer
public void extendMessageConverters(List<HttpMessageConverter<?>> converters)
extendMessageConverters
in interface WebMvcConfigurer
protected void customizePageableResolver(PageableHandlerMethodArgumentResolver pageableResolver)
protected void customizeSortResolver(SortHandlerMethodArgumentResolver sortResolver)
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.