1、解压:找到 dtd 文件

lib

required

解压 core 文件,然后在 /org/hibernate 下找到 dtd 文件(hibernate-configuration-3.0.dtd、hibernate-mapping-3.0.dtd)

2、Eclipse 导入DTD文件
preference—xml—xml catalog—user specified entries--add

(1)导入configuration.dtd 文件
Key type:Public ID
Key: -//Hibernate/Hibernate Configuration DTD 3.0//EN
Location:解压后的dtd文件。
或者:
Key type:URI
Key: http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd
Location:解压后的dtd文件。
(2)导入 mapping dtd 文件
Key type:Public ID
Key: -//Hibernate/Hibernate Mapping DTD 3.0//EN
Location:解压后的dtd文件
或者:
Key type:URI
Key: http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd
Location:解压后的dtd文件。
本文详细介绍了如何在Eclipse IDE中导入Hibernate DTD文件的过程,包括解压核心文件并定位到dtd文件,以及通过Preference设置导入configuration.dtd和mapping.dtd文件的具体步骤。

8026

被折叠的 条评论
为什么被折叠?



