简体   繁体   中英

How to generate hibernate configuration file in Spring Tool Suite?

I am using Spring Tool Suite for my Spring program. I am working on the spring code to integrate with hibernate which requires hibernate configuration file to be configured. How do i generate the XML file with proper DTD? My requirement is to generate the configuration automatically,as I use to generate my spring bean configuration file ? All I need is proper DTD for configuration file to come up while creating XML file. I get only two option while creating XML file :

1) Spring Bean Configuration File

2) Spring Web Flow Definition File

I explored the option in Spring Tool Suite but met with no luck.

首先,您必须在STS中安装Hibernate Tools ,您可以按照教程进行操作,尽管它对于Eclipse来说也适用于STS。

As far as I know STS doesn't provide this feature. I'm not sure about plugins. Anyway NetBeans provides this.

Anyway you can find proper DTD from Spring or Hibernate documentations.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM