运行第一个struts2程序遇到的问题

1.There is no Action mapped for namespace [/] and action name [hello] associated with context path [/HelloWorldStructs2].

可能原因:  

  1、确保struts.xml文件名大小写正确:struts.xml

  2、确保struts.xml文件在src目录下(很重要!后面就着重说这个)

详情见:https://blog.csdn.net/World_Programming/article/details/52791620?locationNum=1&fps=1

ps:通过myelipse搭建更加的简便

猜你喜欢

转载自www.cnblogs.com/nickup/p/9270751.html