diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java index 5318ec001..425cc08b7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java @@ -201,8 +201,8 @@ protected ProducesRequestCondition customize(ProducesRequestCondition condition) } HashSet mediaTypes = new LinkedHashSet(); - mediaTypes.add(configuration.getDefaultMediaType().toString()); - mediaTypes.add(MediaType.APPLICATION_JSON_VALUE); +// mediaTypes.add(configuration.getDefaultMediaType().toString()); +// mediaTypes.add(MediaType.APPLICATION_JSON_VALUE); return new ProducesRequestCondition(mediaTypes.toArray(new String[mediaTypes.size()])); }