protected static class AntPathMatcher.AntPathStringMatcher extends Object
Pattern
.
The pattern may contain special characters: '*' means zero or more characters; '?' means one and
only one character; '{' and '}' indicate a URI template pattern. For example /users/{user}
.
Constructor and Description |
---|
AntPathStringMatcher(String pattern,
boolean caseSensitive)
Create a new
AntPathStringMatcher that will match the supplied pattern |
Modifier and Type | Method and Description |
---|---|
boolean |
matchStrings(String str,
Map<String,String> uriTemplateVariables)
Main entry point.
|
public AntPathStringMatcher(String pattern, boolean caseSensitive)
AntPathStringMatcher
that will match the supplied pattern
pattern
- the pattern to match againstcaseSensitive
- 是否大小写不敏感Copyright © 2025. All rights reserved.