测试struts2.0框架出现404错误! org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx

xiaoxiao2021-03-01  2

[b]报错信息:java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter[/b] [b] [b]解决方案:[/b] [color=red]struts.xml[/color] <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts> <include file="struts-default.xml"/> <package name="testStrutsPage" namespace="/test" extends="struts-default"> <action name="TestStrutsAction" class="com.jerry.action.TestStrutsAction" method="testStruts"> <result name="success" type="dispatcher">/test/testStruts.jsp</result> </action> </package></struts> [/b]
转载请注明原文地址: https://www.6miu.com/read-3650037.html

最新回复(0)