struts2的struts.xm位置

struts2/struts.xml 需放到src下面 确保在classpath


<!-- struts2 核心过滤器begin -->
	<filter>
  		<filter-name>struts2</filter-name>
  		<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  		<init-param>  
  			<param-name>config</param-name>   
  			<param-value>struts-default.xml,struts-plugin.xml,struts2/struts.xml</param-value>  
		</init-param>
  	</filter>

你可能感兴趣的:(struts2)