简体   繁体   中英

Configuration of Hibernate sessionFactory in Spring

如何在Spring中配置hibernate sessionFactory ,使其使用hibernate.cfg.xml进行配置(而不是applicationContext.xml的配置设置)?

<property name="configLocation" value="classpath:hibernate.cfg.xml" />

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