Skip to content

Commit b542b52

Browse files
committed
Update Javadoc on AntPathMatcher
1 parent 6842fd7 commit b542b52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-core/src/main/java/org/springframework/util/AntPathMatcher.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
* {@code org/springframework/testing/servlet/bla.jsp} and {@code org/servlet/bla.jsp}</li>
5353
* </ul>
5454
*
55+
* <p><strong>Note:</strong> a pattern and a path must both be absolute or must
56+
* both be relative in order for the two to match. Therefore it is recommended
57+
* that users of this implementation to sanitize patterns in order to prefix
58+
* them with "/" as it makes sense in the context in which they're used.
59+
*
5560
* @author Alef Arendsen
5661
* @author Juergen Hoeller
5762
* @author Rob Harrop

0 commit comments

Comments
 (0)