打开项目,突然爆出异常:
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..."
最后找到struts-core.jar下的dtd文件,包含:struts-2.0.dtd,struts-2.1.7.dtd,struts2.3.dtd文件。
最后将dtd文件修改为2.1.7版本,重新bulid项目,问题消失。