MyEclispe配置struts2出现There is no Action mapped for namespace [/] and action name [user_all]...问题处理

 今天本打算部署下struts2的环境当作复习,本来以往部署很顺手的,可今天总是出现There is no Action mapped for namespace [/] and action name [user_all] associated with context path [/struts2json]. - [unknown location]的错误提示信息,后来反复检查web.xml、struts.xml配置,没有错呀,仔细一想可能是我新建struts.xml文件命名的问题,因为以往我新建struts2的配置文件都是以struts.xml为命名的,今天是以user.xml命令所以出现错误,更改过后就不会出现此错误了,哎,我算是服了!

错误提示信息:

一月 12, 2016 5:38:53 下午 org.apache.struts2.dispatcher.Dispatcher warn
警告: Could not find action or result: /struts2json/user_all.action
There is no Action mapped for namespace [/] and action name [user_all] associated with context path [/struts2json]. - [unknown location]

工程结构目录:


新建struts2配置文件时,1、确保一定要以struts.xml命名大小写正确;2、struts.xml配置文件要在src目录下。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值