java问题

提问 未结 3 90
小塔儿
小塔儿 2021-07-15
悬赏:20积分
自动生成代码之后,想在导航栏里看到,但是admin没得权限,怎么与普通用户分开来? ERROR 17308 : Subject does not have permission [Module:create] org.apache.shiro.authz.UnauthorizedException: Subject does not have permission [Module:create] at org.apache.shiro.authz.ModularRealmAuthorizer.checkPermission(ModularRealmAuthorizer.java:323) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.mgt.AuthorizingSecurityManager.checkPermission(AuthorizingSecurityManager.java:137) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.subject.support.DelegatingSubject.checkPermission(DelegatingSubject.java:209) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.authz.aop.PermissionAnnotationHandler.assertAuthorized(PermissionAnnotationHandler.java:74) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.assertAuthorized(AuthorizingAnnotationMethodInterceptor.java:84) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.authz.aop.AnnotationsAuthorizingMethodInterceptor.assertAuthorized(AnnotationsAuthorizingMethodInterceptor.java:100) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:38) ~[shiro-core-1.4.0.jar:1.4.0]
回帖
  • 把这个权限在菜单里面配置一下,就可以了
    0 回复
  • 小塔儿
    小塔儿 (楼主)
    2021-07-15
    怎么配
    0 回复
  • @小塔儿 登录系统,打开菜单管理,找到对应的菜单,把Module:create配置进去,就可以了
    0 回复