一、Spring Security的GrantedAuthority(已授予的权限)
【详解】GrantedAuthority(已授予的权限)
参考URL: https://www.cnblogs.com/longfurcat/p/9417422.html
Spring Security中角色和GrantedAuthority之间的区别
参考URL: https://www.cnblogs.com/longfurcat/p/9417422.html
1. Spring Security "角色"如何表示?与Shiro有何不同?
在Security中,角色和权限共用GrantedAuthority接口,唯一的不同角色就是多了个前缀"ROLE_",而且它没有Shiro的那种从属关系,即一个角色包含哪些权限等等。在Security看来角色和权限时一样的,它认证的时候,把所有权限(角色、权限)都取出来,而不是分开验证。
所以,在Security提供的UserDetailsService默认实现JdbcDaoImpl中,角色和权限都存储