mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 15:49:26 +00:00
SPR-5924 - REOPENED -PathVariable mappings are greedy over hard coded mappings
This commit is contained in:
@@ -405,7 +405,7 @@ public class AntPathMatcher implements PathMatcher {
|
||||
return 1;
|
||||
}
|
||||
int bracketCount1 = StringUtils.countOccurrencesOf(pattern1, "{");
|
||||
int bracketCount2 = StringUtils.countOccurrencesOf(pattern1, "{");
|
||||
int bracketCount2 = StringUtils.countOccurrencesOf(pattern2, "{");
|
||||
if (bracketCount1 < bracketCount2) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user