Class SpringDataWebConfiguration
java.lang.Object
org.springframework.data.web.config.SpringDataWebConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Direct Known Subclasses:
HateoasAwareSpringDataWebConfiguration
@Configuration(proxyBeanMethods=false)
public class SpringDataWebConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.beans.factory.BeanClassLoaderAware
Configuration class to register
PageableHandlerMethodArgumentResolver
,
SortHandlerMethodArgumentResolver
and DomainClassConverter
.- Since:
- 1.6
- Author:
- Oliver Gierke, Vedran Pavic, Jens Schauder, Mark Paluch, Greg Turnquist
-
Constructor Summary
ConstructorDescriptionSpringDataWebConfiguration
(org.springframework.context.ApplicationContext context, org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentResolvers
(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) void
addFormatters
(org.springframework.format.FormatterRegistry registry) protected void
customizePageableResolver
(PageableHandlerMethodArgumentResolver pageableResolver) protected void
customizeSortResolver
(SortHandlerMethodArgumentResolver sortResolver) void
extendMessageConverters
(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) void
setBeanClassLoader
(ClassLoader classLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
-
Constructor Details
-
SpringDataWebConfiguration
public SpringDataWebConfiguration(org.springframework.context.ApplicationContext context, @Qualifier("mvcConversionService") org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService)
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
pageableResolver
-
sortResolver
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormatters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) - Specified by:
addArgumentResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
extendMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
customizePageableResolver
-
customizeSortResolver
-