首页 > 移动平台 > 详细

【bug】使用spring+struts2注解开发,提示” There is no Action mapped for namespace [/] and action name [xxxxx.action] associated with context path []”

时间:2018-03-21 13:26:57      阅读:238      评论:0      收藏:0      [点我收藏+]

使用注解开发,通过spring管理struts2容器,配置文件没有问题,前台路径无误

错误提示:

There is no Action mapped for namespace [/] and action name [foreAction_sendCode] associated with context path []

 

    技术分享图片

解决:

action路径对应的方法类,应放在XXX.action.xxx文件夹下,也就是文件夹路径必须有action这一层,否则会无法找到action和namespace

【bug】使用spring+struts2注解开发,提示” There is no Action mapped for namespace [/] and action name [xxxxx.action] associated with context path []”

原文:https://www.cnblogs.com/Vgger/p/8616178.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!