Skip to content

Instantly share code, notes, and snippets.

@jkuipers
Created September 4, 2013 20:54
Show Gist options
  • Save jkuipers/6442730 to your computer and use it in GitHub Desktop.
Save jkuipers/6442730 to your computer and use it in GitHub Desktop.
Spring XML configuration example of setting up a Spring Data DomainClassConverter
<mvc:annotation-driven conversion-service="conversionService" ignoreDefaultModelOnRedirect="true">
<mvc:argument-resolvers>
<bean class="org.springframework.data.web.PageableArgumentResolver"/>
</mvc:argument-resolvers>
</mvc:annotation-driven>
<bean class="org.springframework.data.repository.support.DomainClassConverter">
<constructor-arg ref="conversionService"/>
</bean>
<bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment