多目录配置后错误.跪求解答。
tomcat server.xml 配置项
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="ROOT" debug="0" />
<Context path="/test" docBase="/test" reloadable="true" debug="0" />
</Host>
java test 目录中
web.xml 配置项
<!-- Filter 映射 --> <filter-mapping> <filter-name>encodingFilter</filter-name> <url-pattern>/test/*</url-pattern> </filter-mapping><!-- struts2 --> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/test/*.action</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> </filter-mapping> <filter-mapping> <filter-name>hibernateOpenSessionInViewFilter</filter-name> <url-pattern>/test/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2CleanUpFilter</filter-name> <url-pattern>/test/*.action</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2Filter</filter-name> <url-pattern>/test/*.action</url-pattern> </filter-mapping>