Struts2配置拦截器的后缀名
- 在web.xml中配置
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>
在struts.xml中配置
<!-- 拦截后缀名 action,html --> <constant name="struts.action.extension" value="action,html" />
在struts.properties中配置
在struts.properties中有一系列的配置,其中可以配置后缀名:struts.action.extension=html,action