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

 

 

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-04-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
相关资源
相似解决方案