Class SpringDataWebConfiguration
java.lang.Object
org.springframework.data.web.config.SpringDataWebConfiguration
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,WebMvcConfigurer
- Direct Known Subclasses:
HateoasAwareSpringDataWebConfiguration
@Configuration(proxyBeanMethods=false)
public class SpringDataWebConfiguration
extends Object
implements WebMvcConfigurer, BeanClassLoaderAware
Configuration class to register
PageableHandlerMethodArgumentResolver
,
SortHandlerMethodArgumentResolver
, OffsetScrollPositionHandlerMethodArgumentResolver
and DomainClassConverter
.- Since:
- 1.6
- Author:
- Oliver Gierke, Vedran Pavic, Jens Schauder, Mark Paluch, Greg Turnquist, Yanming Zhou
-
Constructor Summary
ConstructorDescriptionSpringDataWebConfiguration
(ApplicationContext context, ObjectFactory<ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) void
addFormatters
(FormatterRegistry registry) protected void
protected void
customizePageableResolver
(PageableHandlerMethodArgumentResolver pageableResolver) protected void
customizeSortResolver
(SortHandlerMethodArgumentResolver sortResolver) void
extendMessageConverters
(List<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(ApplicationContext context, @Qualifier("mvcConversionService") ObjectFactory<ConversionService> conversionService)
-
-
Method Details
-
setBeanClassLoader
- Specified by:
setBeanClassLoader
in interfaceBeanClassLoaderAware
-
pageableResolver
-
sortResolver
-
offsetResolver
-
addFormatters
- Specified by:
addFormatters
in interfaceWebMvcConfigurer
-
addArgumentResolvers
- Specified by:
addArgumentResolvers
in interfaceWebMvcConfigurer
-
extendMessageConverters
- Specified by:
extendMessageConverters
in interfaceWebMvcConfigurer
-
customizePageableResolver
-
customizeSortResolver
-
customizeOffsetResolver
protected void customizeOffsetResolver(OffsetScrollPositionHandlerMethodArgumentResolver offsetResolver)
-