There is no Action mapped for action name XX.的解决

xiaoxiao2024-04-15  21

There is no Action mapped for action name xx. - [unknown location] com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) 出现此异常时,看一下你的struts.xml是不是放在/WEB-INF/classes下, 如果是:将其入在 src 下,就可以了, web.xml的配置不变. 你只能把它放在src路径下,不要往深层去放(我的放到了src/META-INF/base下),否则会出上面的错误,可怜我找了两天,经验害死人啊。。。,我也是刚学struts2,没人带。不知道还有什么好的方式来解决没。 相关资源:敏捷开发V1.0.pptx
转载请注明原文地址: https://www.6miu.com/read-5014989.html

最新回复(0)