struts.xml路径修改后的web配置
web.xml配置:
其中struts-default.xml,struts-plugin.xml是必须加的,否则会报!
错误信息:No mapping found for dependency[type=com.opensymphony.xwork2.ObjectFactory]
<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]
转载于:https://blog.51cto.com/3001448/1205803