struts2配置文件

二、问题原因

 


 

三、解决方案

 

    出现该错误说明xml不符合dtd规范,提示信息已经给出来了,它的意思是struts下的子节点只能是package、include、bean或者constant。

  而我struts标签下却有<action/>,所以报错。

  解决办法是将<action/>标签移到package的子节点中,OK,问题解决了!

 

 

原文地址:https://www.cnblogs.com/jingxiaopu/p/8759394.html