1、【window】->【preference】..->【xml】-> 【xml catalog】
![]() 2、选中 user specified entried 3、选择左边【Add..】按钮 Key type:URI Key:http://www./dtd/hibernate-mapping-3.0.dtd(可在dtd文件里找到) 4、点击确定
XML文件的打开方式最好选择【XML Editor】,其中包括design,source两种模式,选择source模式。 6、新建xml文件 以后每次新建xml文件的时候,选择XML (Basic Templates),下一步选择Create XML file from a DTD file。导入该dtd文件,再编辑xml,可以自动补全,很爽 ![]() |
|
来自: 昵称1974760 > 《hibernate》