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