Spring Security 中,想在权限中使用通配符,怎么做?
小伙伴们知道,在 Shiro 中,默认是支持权限通配符的,例如系统用户有如下一些权限:
system:user:add
system:user:delete
system:user:select
system:user:update
...
现在给用户授权的时候,我们可以像上面这样,一个权限一个权限的配置,也可以直接用通配符:
system:user:*
这个通配符就表示拥有针对用户的所有