@Configuration(proxyBeanMethods=false) public class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfiguration
PagedResourcesAssembler
and PagedResourcesAssemblerArgumentResolver
.Constructor and Description |
---|
HateoasAwareSpringDataWebConfiguration(ApplicationContext context,
ObjectFactory<ConversionService> conversionService) |
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) |
HateoasPageableHandlerMethodArgumentResolver |
pageableResolver() |
PagedResourcesAssembler<?> |
pagedResourcesAssembler() |
PagedResourcesAssemblerArgumentResolver |
pagedResourcesAssemblerArgumentResolver() |
HateoasSortHandlerMethodArgumentResolver |
sortResolver() |
addFormatters, customizePageableResolver, customizeSortResolver, extendMessageConverters, setBeanClassLoader
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 HateoasAwareSpringDataWebConfiguration(ApplicationContext context, @Qualifier(value="mvcConversionService") ObjectFactory<ConversionService> conversionService)
context
- must not be null.conversionService
- must not be null.@Bean public HateoasPageableHandlerMethodArgumentResolver pageableResolver()
pageableResolver
in class SpringDataWebConfiguration
@Bean public HateoasSortHandlerMethodArgumentResolver sortResolver()
sortResolver
in class SpringDataWebConfiguration
@Bean public PagedResourcesAssembler<?> pagedResourcesAssembler()
@Bean public PagedResourcesAssemblerArgumentResolver pagedResourcesAssemblerArgumentResolver()
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
addArgumentResolvers
in interface WebMvcConfigurer
addArgumentResolvers
in class SpringDataWebConfiguration
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.