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
ConstructorsConstructorDescriptionSpringDataWebConfiguration(org.springframework.context.ApplicationContext context, org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) voidaddFormatters(org.springframework.format.FormatterRegistry registry) protected voidcustomizePageableResolver(PageableHandlerMethodArgumentResolver pageableResolver) protected voidcustomizeSortResolver(SortHandlerMethodArgumentResolver sortResolver) voidextendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) voidsetBeanClassLoader(ClassLoader classLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
pageableResolver
-
sortResolver
-
addFormatters
public void addFormatters(org.springframework.format.FormatterRegistry registry) - Specified by:
addFormattersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) - Specified by:
addArgumentResolversin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
extendMessageConvertersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
customizePageableResolver
-
customizeSortResolver
-