HTTP Status 404 - There is no Action mapped for namespace [/] and action name [] associated with context path [/struts2_01]

Eclipse中配置struts2发布web项目报错:

需要检查如下:

  • tomcat与jdk的版本问题。
  • struts.xml文件在否在src目录下。
  • struts.xml文件名大小写是否命名正确。
  • jar包上是否重复(Tomcat的lib下加了jar包,项目的lib中又加入一遍jar包,造成冲突)。

 

posted @ 2020-09-20 19:46  南清风  阅读(109)  评论(0编辑  收藏  举报