shiro 没有权限异常处理

<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
  <property name="exceptionMappings">
    <props>
      <prop key="org.apache.shiro.authz.UnauthorizedException">redirect:/test.html</prop>
    </props>
  </property>
</bean>

原文地址:https://www.cnblogs.com/mm163/p/10293173.html