shiro 配置注解后无权访问不进行页面跳转异常:org.apache.shiro.authz.UnauthorizedException: Subject does not have permiss

Posted 李梵

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了shiro 配置注解后无权访问不进行页面跳转异常:org.apache.shiro.authz.UnauthorizedException: Subject does not have permiss相关的知识,希望对你有一定的参考价值。

该问题需要使用异常管理:

 

 

<!-- 无权访问跳转的页面 -->
<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
  <property name="exceptionMappings">
    <props>
      <prop key="org.apache.shiro.authz.UnauthorizedException">refuse</prop>
    </props>
  </property>
</bean>








以上是关于shiro 配置注解后无权访问不进行页面跳转异常:org.apache.shiro.authz.UnauthorizedException: Subject does not have permiss的主要内容,如果未能解决你的问题,请参考以下文章