spring+hibernate
山鹰的天空
追求漂亮的技术,让用户有最好的体验。
展开
-
Spring整合Hibernate的步骤
为什么要整合Hibernate? 1、使用Spring的IOC功能管理SessionFactory对象 LocalSessionFactoryBean 2、使用Spring管理Session对象 HibernateTemplate 3、使用Spring的功能实现声明式的事务管理 整合Hibernate的步骤: 1、配置SessionFactory(可以自动完成)原创 2016-09-07 11:59:52 · 829 阅读 · 0 评论 -
spring的applicationContext.xml
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="ht原创 2016-09-07 12:06:52 · 325 阅读 · 0 评论