DATACMNS-330, DATACMNS-331 - More improvements on web configuration.

Reverting the registration of the DomainClassConverter as a Spring bean an prefer direct registration against the FormatterRegistry handed into addFormatters(…) of WebMvcConvfigurerAdapter. Otherwise we run into CGLib issues while enhancing the config classes.
This commit is contained in:
Oliver Gierke
2013-05-22 10:18:26 +02:00
parent 16c3c15204
commit 73b9d60be5
2 changed files with 21 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ public class EnableSpringDataWebSupportIntegrationTests {
ApplicationContext context = WebTestUtils.createApplicationContext(SampleConfig.class);
List<String> names = Arrays.asList(context.getBeanDefinitionNames());
assertThat(names, hasItems("pageableResolver", "sortResolver", "mvcDomainClassConverter"));
assertThat(names, hasItems("pageableResolver", "sortResolver"));
assertResolversRegistered(context, SortHandlerMethodArgumentResolver.class,
PageableHandlerMethodArgumentResolver.class);