About the solution for the shiro framework to report an error and clear the session after configuring the public error page in web.xml

When writing shiro configuration in web.xml, the following configuration is required:

<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>

The most important are the following four lines

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325478337&siteId=291194637