diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java index 1a0b098fa..5592561e1 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java @@ -158,7 +158,6 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon @Autowired ApplicationContext applicationContext; - @Autowired(required = false) List idConverters = Collections.emptyList(); @Autowired(required = false) List> lookups = Collections.emptyList(); @Autowired List> defaultMessageConverters; @@ -809,10 +808,10 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon } @Bean - public PluginRegistry> backendIdConverterRegistry() { + public PluginRegistry> backendIdConverterRegistry( + List backendIdConverter) { - List converters = new ArrayList<>(idConverters.size()); - converters.addAll(this.idConverters); + List converters = new ArrayList<>(backendIdConverter); converters.add(DefaultIdConverter.INSTANCE); return PluginRegistry.of(converters);