fix jwt过滤编写问题
This commit is contained in:
parent
bff9d0560d
commit
4a8781f4d9
@ -40,8 +40,8 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter
|
||||
{
|
||||
// 匿名路径放行 默认拦截
|
||||
boolean flag = true;
|
||||
PathMatcher pm = new AntPathMatcher();
|
||||
for (String anonymou : securityProperties.getAnonymous()) {
|
||||
PathMatcher pm = new AntPathMatcher();
|
||||
if (pm.match(anonymou, request.getRequestURI())) {
|
||||
flag = false;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user