路径匹配工具

lly-rainbow / 2023-09-01 / 原文

 PathMatcher pathMatcher = new AntPathMatcher();

  if (pathMatcher.match(s(数组中的每一个元素,也就是要放行的路径), req.getRequestURI()(本次请求的路径)))