有时报错也为:There is no Action mapped for action name ~(访问路径名) 我的原因:struts2的配置文件名是我随便起的 解决:将名字改为struts.xml