启动tomcat后报Unable to locate configuration files of the name struts.xml的warming,修改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>
<param-value>struts-default.xml,struts-plugin.xml,struts/struts.xml</param-value>
</init-param>
</filter>
主要是,struts2默认从src目录下加载文件,而我们的文件在struts文件夹下,加上就好了。