struts.xml路径修改后的web配置

web.xml配置:
<filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> <init-param> <param-name>config</param-name>  <!-- 配置装载struts.xml路径--> <param-value> /xxx/struts.xml, struts-default.xml, struts-plugin.xml </param-value> </init-param> </filter>


其中struts-default.xml,struts-plugin.xml是必须加的,否则会报!
错误信息:No mapping found for dependency[type=com.opensymphony.xwork2.ObjectFactory]

你可能感兴趣的:(web.xml,struts,配置)