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]