feat(web): 新增 isMatch 路径是否匹配方法

match => isMatch
This commit is contained in:
2024-08-19 22:40:53 +08:00
parent 7571c05f9c
commit e55eb17d64
3 changed files with 34 additions and 27 deletions

View File

@@ -104,7 +104,7 @@ public class LogFilter extends OncePerRequestFilter implements Ordered {
// 放行
boolean isMatch = logProperties.getExcludePatterns()
.stream()
.anyMatch(pattern -> SpringWebUtils.match(pattern, request.getRequestURI()));
.anyMatch(pattern -> SpringWebUtils.isMatch(pattern, request.getRequestURI()));
return !isMatch;
}