摘要:
1.不用dataSource引入hibernate.cfg.xmlBean.xml代码 <beanid="sessionFactory"class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <propertyname="configLocation"> <value>classpath:hibernate.cfg.xml</value> </property> </bean>< 阅读全文