以添加struts2的DTD文件为例,步骤如下:
1、window - preferences - xml catalog
2、add - location 选择 File System
3、Key Type 选择URI
4、Key 填入
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />
<include file="example.xml"/>
<!-- Add packages here -->
</struts>
dtd文件可以用everything在电脑中搜索出,
打开文件,复制到软件的key值