Eclipse添加xml文件提示及Hibernate配置学习
只要你有一台电脑或者手机,都能关注图老师为大家精心推荐的Eclipse添加xml文件提示及Hibernate配置学习,手机电脑控们准备好了吗?一起看过来吧!
解压hibernate.jar包
在orghibernate目录下找到hibernate-configuration-3.0.dtd和hibernate-mapping-3.0.dtd
打开Eclipse--Window--Preferences--Web and XML--XML Catalog
在右边点击Add XML Catalog Entry
location:引入上面说的dtd文件
Key Type:URL
Key:打开dtd文件粘贴如下路径
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd


