ifeilong / feilong-spring

:gem:focus on spring
Apache License 2.0
4 stars 12 forks source link

ConfigurableConditionOncePerRequestFilter 支持白名单 url地址配置 #119

Open venusdrogon opened 6 years ago

venusdrogon commented 6 years ago

ConfigurableConditionOncePerRequestFilter 支持白名单 url地址配置

venusdrogon commented 6 years ago

   //白名单检查
        if (Validator.isNotNullOrEmpty(whiteList)){
            for (AntPathRequestMatcher matcher : whiteList){
                if (matcher.matches(request)){
                    filterChain.doFilter(request, response);
                    return;
                }
            }
        }