页面用标签,报错,为何?
java.lang.IllegalArgumentException: Wildcard string cannot be null or empty. Make sure permission strings are properly formatted.
at org.apache.shiro.authz.permission.WildcardPermission.setParts(WildcardPermission.java:151)
at org.apache.shiro.authz.permission.WildcardPermission.(WildcardPermission.java:142)
at org.apache.shiro.authz.permission.WildcardPermission.(WildcardPermission.java:138)
at org.apache.shiro.authz.permission.WildcardPermissionResolver.resolvePermission(WildcardPermissionResolver.java:41)
at org.apache.shiro.realm.AuthorizingRealm.resolvePermissions(AuthorizingRealm.java:433)
at org.apache.shiro.realm.AuthorizingRealm.getPermissions(AuthorizingRealm.java:409)
at org.apache.shiro.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:466)
at org.apache.shiro.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:462)
at org.apache.shiro.realm.AuthorizingRealm.isPermitted(AuthorizingRealm.java:457)
at org.apache.shiro.authz.ModularRealmAuthorizer.isPermitted(ModularRealmAuthorizer.java:223)
at org.apache.shiro.mgt.AuthorizingSecurityManager.isPermitted(AuthorizingSecurityManager.java:113)
at org.apache.shiro.subject.support.DelegatingSubject.isPermitted(DelegatingSubject.java:158)
at org.apache.shiro.web.tags.PermissionTag.isPermitted(PermissionTag.java:66)
at org.apache.shiro.web.tags.HasPermissionTag.showTagBody(HasPermissionTag.java:32)
at org.apache.shiro.web.tags.PermissionTag.onDoStartTag(PermissionTag.java:57)
at org.apache.shiro.web.tags.SecureTag.doStartTag(SecureTag.java:53)
问题解决了么,我也遇以这问题了
权限配置的时候看看里面的值是否有空的
权限管理的时候你没有往里面添值那去的时候肯定报null错啊
在添加的权限信息里面,有空格,需要把空格过滤掉就可以了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。