配置Struts2 xml Referenced file contains errors (http://struts.apache.org/dtds/struts-2.0.dtd). For m

来源:互联网 发布:南阳理工软件 编辑:程序博客网 时间:2024/06/08 17:55
换了myeclipse版本出现这样错误:Referenced file contains errors (http://struts.apache.org/dtds/struts-2.0.dtd). For more information, right click on the

 message in the Problems View and select "Show Details..."


解决办法: 在myeclipse9.0,      [MyEclipse]-[Files-Editors]-[XML]-[XML Catalog]    查找到  “-//Apache Software Foundation//DTD Struts Configuration 2.1//EN ”   和

“-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN ” 

只需将struts.xml文件  “-//Apache Software Foundation//DTD Struts Configuration 2.0//EN ”   2.0修改为对应的 2.1或是2.1.7   ctrl+s即可