@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, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, 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-2013-2013 Pivotal. All Rights Reserved.