struts2中web.xml的配置----<filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> struts2中struts2.xml的配置