关于shiro框架在web.xml中配置公共错误页面后 报错清楚session的解决办法

在web.xml中写shiro配置时需如下配置:

<filter-mapping>  
        <filter-name>shiroFilter</filter-name>  
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>

        <dispatcher>ERROR</dispatcher>  

</filter-mapping>

最重要的是下面四行

猜你喜欢

转载自blog.csdn.net/qq_34889039/article/details/80220908
今日推荐