eclipse 中 编辑xml 不自动提示

来源:互联网 发布:淘宝店网址怎么改 编辑:程序博客网 时间:2024/05/02 15:05

  以添加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值

0 0