mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
SPR-5251: URI Templates support relative @RequestMappings (on class level, with more specific mapping on method level)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@303 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+6
-2
@@ -504,7 +504,9 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
|
||||
}
|
||||
}
|
||||
if (targetHandlerMethods.size() == 1) {
|
||||
extractHandlerMethodUriTemplates(targetPathMatches.values().iterator().next(), lookupPath, request);
|
||||
if (targetPathMatches.size() == 1) {
|
||||
extractHandlerMethodUriTemplates(targetPathMatches.values().iterator().next(), lookupPath, request);
|
||||
}
|
||||
return targetHandlerMethods.values().iterator().next();
|
||||
}
|
||||
else if (!targetHandlerMethods.isEmpty()) {
|
||||
@@ -527,7 +529,9 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
|
||||
}
|
||||
}
|
||||
}
|
||||
extractHandlerMethodUriTemplates(bestPathMatch, lookupPath, request);
|
||||
if (bestPathMatch != null) {
|
||||
extractHandlerMethodUriTemplates(bestPathMatch, lookupPath, request);
|
||||
}
|
||||
return targetHandlerMethods.get(bestMappingMatch);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user