PathMappingTree tree = new PathMappingTree();
tree.addPath("GET|POST /vehicle/{\d+}/info/*");
tree.addPath("GET /users/search");
tree.addPath("DELETE /users/s*");
PathElement element = tree.matchPath("/users/sss", "get");
if (element != null) {
// 匹配成功
}
-
Notifications
You must be signed in to change notification settings - Fork 0
URL匹配库,支持 全名、通配符、正则表达式样式的URL
License
wangda/pathmappingtree
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
URL匹配库,支持 全名、通配符、正则表达式样式的URL
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published