@Configuration public class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfiguration
PagedResourcesAssembler
and PagedResourcesAssemblerArgumentResolver
.Constructor and Description |
---|
HateoasAwareSpringDataWebConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) |
HateoasPageableHandlerMethodArgumentResolver |
pageableResolver() |
PagedResourcesAssembler<?> |
pagedResourcesAssembler() |
PagedResourcesAssemblerArgumentResolver |
pagedResourcesAssemblerArgumentResolver() |
HateoasSortHandlerMethodArgumentResolver |
sortResolver() |
addFormatters, extendMessageConverters
addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
public HateoasAwareSpringDataWebConfiguration()
@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–2019 Pivotal Software, Inc.. All rights reserved.