eclipse 添加 hibernate *.hbm.xml自动提示

来源:互联网 发布:nginx lua脚本开发 编辑:程序博客网 时间:2024/06/06 03:42

配置之前需要准备好hibernate-mapping-3.0.dtd的文件

*.hbm.xml

<?xml version="1.0"?><!DOCTYPE hibernate-mapping PUBLIC        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

复制
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd

打开

window->preferences->XML->XML Cata

选择ADD添加


location:选择准备好的hibernate-mapping-3.0.dtd 

key type:选择为URI

key:http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd


点OK完成 重新打开XML文件就有提示了

完工


0 0
原创粉丝点击