Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mall-tiny-security DynamicSecurityFilter 每个request会执行两次 #128

Open
shengtu0328 opened this issue Nov 16, 2022 · 0 comments
Open

Comments

@shengtu0328
Copy link

https://github.com/macrozheng/mall-learning/tree/master/

DynamicSecurityFilter是否加上判重比较?

private static final String FILTER_APPLIED = "__spring_security_demoFilter_filterApplied";

if (servletRequest.getAttribute(FILTER_APPLIED) != null) {
        filterChain.doFilter(servletRequest, servletResponse);
        return ;
    }
    //do something
    servletRequest.setAttribute(FILTER_APPLIED,true);
    filterChain.doFilter(servletRequest, servletResponse);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant