在Spring中配置Hibernate sessionFactory

时间:2012-02-03 12:48:43

标签: java hibernate spring

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

1 个答案:

答案 0 :(得分:6)

<property name="configLocation" value="classpath:hibernate.cfg.xml" />
相关问题