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

静态资源无法访问,.antMatchers不生效 #17

Open
wenxiuzhu opened this issue Jul 25, 2018 · 1 comment
Open

静态资源无法访问,.antMatchers不生效 #17

wenxiuzhu opened this issue Jul 25, 2018 · 1 comment

Comments

@wenxiuzhu
Copy link

这种写法会带来的问题楼主似乎并没有告知给用户。比如: .antMatchers("//library/") .permitAll() 这种设置就完全不起作用了。楼主能解释下吗?

@527515025
Copy link
Owner

对的,这个不能起作用了 ,因为 UrlAccessDecisionManager 中的 decide 方法会拦截

你可以看一下这个 https://github.com/527515025/springBoot/blob/master/springboot-springSecurity4/src/main/java/com/yy/example/security/UrlAccessDecisionManager.java

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

2 participants