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
and DomainClassConverter
.- Since:
- 1.6
- Author:
- Oliver Gierke, Vedran Pavic, Jens Schauder, Mark Paluch, Greg Turnquist
-
Constructor Summary
ConstructorDescriptionSpringDataWebConfiguration
(ApplicationContext context, ObjectFactory<ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) void
addFormatters
(FormatterRegistry registry) 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
-
addFormatters
- Specified by:
addFormatters
in interfaceWebMvcConfigurer
-
addArgumentResolvers
- Specified by:
addArgumentResolvers
in interfaceWebMvcConfigurer
-
extendMessageConverters
- Specified by:
extendMessageConverters
in interfaceWebMvcConfigurer
-
customizePageableResolver
-
customizeSortResolver
-