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

filterChainDefinitionManager.put("/user/**", "authc,roles[ROLE_USER]"); #24

Open
tuxh opened this issue May 24, 2019 · 1 comment
Open

Comments

@tuxh
Copy link

tuxh commented May 24, 2019

你好 , 这句话似乎没有起到权限控制的作用啊? 是否需要在controller加上注解@RequiresPermissions("******")

@tuxh
Copy link
Author

tuxh commented May 24, 2019

@RequestMapping(value = "/users") 原来请求的是/users ;
ShiroConfiguration 中 的filterChainDefinitionManager.put("/user/**", "authc,roles[ROLE_USER]");
user改为users就可以做到根据角色控制权限了

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