myeclipse 配置struts出现 Unable to load configuration.

17:32:06.818 [localhost-startStop-1] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load 
Unable to load configuration. - action - file:/D:/myeclipse/apache-tomcat-9.0.0.M15/webapps/struts2Moudle/WEB-INF/classes/struts.xml:10:26
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:504)



<struts>
    <constant name="struts.devMode" value="true">constant>
    <package name="p1">

        <action name="action1">
            <result name="success">index.jspresult>
        action>
    package>
struts>

工具提示我不能加载这个配置,仔细检查我的struts.xml 发现,我并没有为 包名为p1 的包,指定extends属性。。。。。。写上extends=”struts-default” 问题解决!

你可能感兴趣的:(JAVA,解决方案)