疯狂的狮子li
2021-09-26 4a8781f4d974abd567e481822827aba93fac3ccc
ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java
@@ -40,13 +40,12 @@
    {
        // 匿名路径放行 默认拦截
        boolean flag = true;
        PathMatcher pm = new AntPathMatcher();
        for (String anonymou : securityProperties.getAnonymous()) {
            PathMatcher pm = new AntPathMatcher();
            if (pm.matchStart(anonymou, request.getRequestURI())) {
            if (pm.match(anonymou, request.getRequestURI())) {
                flag = false;
                break;
            }
        }
        if (flag) {
            LoginUser loginUser = tokenService.getLoginUser(request);