From 9adcd01aa3c7b69bbec55e7235bbb1912b835475 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 2 Nov 2012 08:52:41 +0100 Subject: [PATCH] DATAREST-56 - RepositoryRestHandlerMapping now uses lowest precedence. Invoke super constructor with Ordered.LOWEST_PRECEDENCE to allow custom controller implementations hook into the URI space managed by the RepositoryRestController. --- .../data/rest/webmvc/RepositoryRestHandlerMapping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 27ae2896c..6399196b1 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 @@ -32,7 +32,7 @@ public class RepositoryRestHandlerMapping extends RequestMappingHandlerMapping { private Set repositoryNames = new HashSet(); public RepositoryRestHandlerMapping() { - setOrder(Ordered.HIGHEST_PRECEDENCE); + setOrder(Ordered.LOWEST_PRECEDENCE); } @SuppressWarnings({"unchecked"})