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