【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文件夹下,痛哭(>﹏<)

这里写图片描述

猜你喜欢

转载自blog.csdn.net/jiojio_/article/details/69945826