public static void main(String[] args) { PathMatcher matcher = new AntPathMatcher(); String requestPath="/w/user/1/post"; String patternPath="/w/user/?/post"; boolean result = matcher.match(patternPath, requestPath); System.out.println(result); }
基于spring的模拟ant路径匹配url-pattern
最新推荐文章于 2023-02-14 22:37:43 发布