mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-5924 - REOPENED -PathVariable mappings are greedy over hard coded mappings
This commit is contained in:
+1
@@ -387,6 +387,7 @@ public class AntPathMatcherTests {
|
||||
assertEquals(-1, comparator.compare("/hotels/new", "/hotels/{hotel}"));
|
||||
assertEquals(1, comparator.compare("/hotels/{hotel}", "/hotels/new"));
|
||||
assertEquals(0, comparator.compare("/hotels/{hotel}", "/hotels/{hotel}"));
|
||||
assertEquals(-1, comparator.compare("/hotels/{hotel}/booking", "/hotels/{hotel}/bookings/{booking}"));
|
||||
|
||||
assertEquals(-1, comparator.compare("/hotels/{hotel}", "/hotels/*"));
|
||||
assertEquals(1, comparator.compare("/hotels/*", "/hotels/{hotel}"));
|
||||
|
||||
Reference in New Issue
Block a user