Skip to content

Instantly share code, notes, and snippets.

@yanhua365
Forked from jkuipers/mvc-config-fragment.xml
Last active August 29, 2015 13:57
Show Gist options
  • Save yanhua365/9799425 to your computer and use it in GitHub Desktop.
Save yanhua365/9799425 to your computer and use it in GitHub Desktop.
<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