fix jwt过滤编写问题

This commit is contained in:
疯狂的狮子li 2021-09-26 15:18:05 +08:00
parent bff9d0560d
commit 4a8781f4d9

View File

@ -40,8 +40,8 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter
{
// 匿名路径放行 默认拦截
boolean flag = true;
for (String anonymou : securityProperties.getAnonymous()) {
PathMatcher pm = new AntPathMatcher();
for (String anonymou : securityProperties.getAnonymous()) {
if (pm.match(anonymou, request.getRequestURI())) {
flag = false;
break;