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

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

posted @ 2018-03-21 11:54  两行仨bug  阅读(162)  评论(0编辑  收藏  举报