1_eclipse导入hibernate 的DTD 文件

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文件。

 

猜你喜欢

转载自www.cnblogs.com/fanyizhan/p/10386628.html
今日推荐