Eclipse adds XML file tips and Hibernate configuration learning

  • 2020-04-01 01:32:15
  • OfStack

Add a Hibernate profile prompt
Unpack the hibernate. Jars
Find the hibernate-configuration-3.0.dtd and hibernate-ming-3.0.dtd under the org\hibernate directory
Open the Eclipse - > The Window - > The Preferences - > Web and XML - > XML Catalog
Click Add XML Catalog Entry on the right
Location: import the DTD file mentioned above

Key Type: URL
Key: open the DTD file and paste the following path
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd

Related articles: