【bug日常】struts报错: There is no Action mapped for namespace [/] and action name [login] associated ...

今天上课练习Struts时,一直报错 There is no Action mapped for namespace [/] and action name [login] associated with context path [/testStructs].
![这里写图片描述](https://img-blog.csdn.net/20170410133708578?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvSmlvamlvXw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
仔细检查步骤也没有什么问题,后来发现是一个小细节,struts.xml应该在src文件夹下,痛哭(>﹏<)

write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325731406&siteId=291194637