<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>
hibernate.cfg.xml的配置像平常的hibernate应用一样,
好处是spring 的归applictionContext.xml , hibernate 的归hibernate.cfg.xml ,分而治之