换了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即可
本文介绍了解决MyEclipse中因Struts配置文件DTD版本不匹配导致的错误方法。通过调整struts.xml文件中的DTD声明版本,可以轻松解决这一问题。
1722

被折叠的 条评论
为什么被折叠?



