码迷,mamicode.com
首页 > 移动开发 > 详细

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

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

标签:图片   oci   解决   pos   http   with   mes   管理   无法找到   

使用注解开发,通过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 []”

标签:图片   oci   解决   pos   http   with   mes   管理   无法找到   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!