org.springframework.data.web.config
Class HateoasAwareSpringDataWebConfiguration
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
org.springframework.data.web.config.SpringDataWebConfiguration
org.springframework.data.web.config.HateoasAwareSpringDataWebConfiguration
- All Implemented Interfaces:
- WebMvcConfigurer
@Configuration
public class HateoasAwareSpringDataWebConfiguration
- extends SpringDataWebConfiguration
JavaConfig class to register PagedResourcesAssembler
and PagedResourcesAssemblerArgumentResolver
.
- Since:
- 1.6
- Author:
- Oliver Gierke, Nick Williams
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HateoasAwareSpringDataWebConfiguration
public HateoasAwareSpringDataWebConfiguration()
pageableResolver
@Bean
public HateoasPageableHandlerMethodArgumentResolver pageableResolver()
- Overrides:
pageableResolver
in class SpringDataWebConfiguration
sortResolver
@Bean
public HateoasSortHandlerMethodArgumentResolver sortResolver()
- Overrides:
sortResolver
in class SpringDataWebConfiguration
pagedResourcesAssembler
@Bean
public PagedResourcesAssembler<Object> pagedResourcesAssembler()
pagedResourcesAssemblerArgumentResolver
@Bean
public PagedResourcesAssemblerArgumentResolver pagedResourcesAssemblerArgumentResolver()
addArgumentResolvers
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
- Specified by:
addArgumentResolvers
in interface WebMvcConfigurer
- Overrides:
addArgumentResolvers
in class SpringDataWebConfiguration
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.