有时候dtd文件由于网络原因找不到,但是有些dtd会存在与jar包中。可解压然后导入eclipse中。
1、window-preference-xml-xml catalog-user specified entries窗口中,选择add按钮。
2、在对话框中选择Location:
Location: F:\soft\programmingSoft\Framework\Ibatis\sql-map-config-2.dtd
Key Type: URI
KEY: http://ibatis.apache.org/dtd/sql-map-config-2.dtd
3、其中key要与配置文件引用的路径一致。