fix jwt过滤编写问题

master
疯狂的狮子li 4 years ago
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…
Cancel
Save