Spring整合Hibernate整合的是什么:
1.由Spring的IOC容器管理Hibernate的SessionFactory
2.使Hibernate使用上Spring的声明式事物
整合步骤:
1)加入hibernate
1>加入jar包
2>加入hibernate的配置文件 hibernate.cfg.xml
3>编写持久化类对应的.hbm.xml文件
2)加入Spring
①加入jar包
②配置spring配置文件
3)整合