Spring Data Core

org.springframework.data.web.config
Class SpringDataWebConfiguration

java.lang.Object
  extended by org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      extended by 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

Constructor Summary
SpringDataWebConfiguration()
           
 
Method Summary
 void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
           
 void addFormatters(FormatterRegistry registry)
           
 PageableHandlerMethodArgumentResolver pageableResolver()
           
 SortHandlerMethodArgumentResolver sortResolver()
           
 
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, getValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDataWebConfiguration

public SpringDataWebConfiguration()
Method Detail

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

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.