现在的位置: 首页 > 综合 > 正文

There is no Action mapped for namespace / and action name .

2018年02月05日 ⁄ 综合 ⁄ 共 284字 ⁄ 字号 评论关闭

建立一个struts2+hibernate+spring的demo,结果发现输入:http://localhost:端口号/项目名称/ 后,页面报:HTTP Status 404 - There is no Action mapped for namespace / and action name .,刚开始以为是 web.xml中的welcome-file-list的元素没起作用,后来经过测试,发现不是这个原因,,当时的struts2 的filter配置如下:

后来,发现,把/*--->*.action,问题就解决了,不过郁闷的是,*.action---再改回--->/*   也不会出错了,郁闷呀

抱歉!评论已关闭.