@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
addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, 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-2014–2015 Pivotal Software, Inc.. All rights reserved.