文章目录

在web.xml中添加过滤器

1
2
3
4
5
6
7
8
<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>

此文是本站原创,转载请标注作者和链接出处!