【发布时间】:2019-11-23 09:07:43
【问题描述】:
Apache Shiro 的通配符不起作用
用 isPermitted 尝试了几个步骤
亲爱的,
我正在使用 Apache Shiro(版本 1.4.1)。对于单个权限,一切都很好,但是如果我想使用通配符权限,它就不起作用。为什么?
例如,我有: 客户:创建 客户:删除 客户:showAll
如果我正在使用:
shiroUser.isPermitted("customer:create"),比它的工作。
但是:
shiroUser.isPermitted("customer:*"), is NOT working...
有什么我必须启用的设置吗?
我目前不知道为什么它不起作用...
有什么想法吗?
【问题讨论】: