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