当前位置:网站首页>@Principle of preauthorize permission control

@Principle of preauthorize permission control

2022-06-25 06:18:00 WD Technology

@PreAuthorize annotation , As the name suggests, it is the permission verification before entering the method ,@PreAuthorize The permission expression required to declare this method , for example :@PreAuthorize(“hasAuthority(‘sys:dept:delete’)”),

The permissions required according to this annotation , Then compare with the permissions of the currently logged in user role , If the user's role permission set Set Has this permission in , The release ; No, , Refuse

原网站

版权声明
本文为[WD Technology]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202201237011424.html