新建一个项目,加上spring框架,再加上hibernate框架,要注意
第二步要选上面的hibernate confige file(hibernate.cfg.xml)
第三步要选上面的new hibernate confige file,其中session Factory ID 可以设置为sessionFactory
第四步DB Driver 那个要选上
第五步 create sessionfactory class 选上,可以房在一个独立的包中
6,给表映射
7,配置web.xml dispatcher.xml views.xml....
第二步要选上面的hibernate confige file(hibernate.cfg.xml)
第三步要选上面的new hibernate confige file,其中session Factory ID 可以设置为sessionFactory
第四步DB Driver 那个要选上
第五步 create sessionfactory class 选上,可以房在一个独立的包中
6,给表映射
7,配置web.xml dispatcher.xml views.xml....
本文详细介绍了如何在项目中整合Spring框架与Hibernate框架的过程。主要包括新建项目、配置Hibernate、创建SessionFactory、配置数据库驱动、创建会话工厂类、表映射及配置web.xml等关键步骤。
1079

被折叠的 条评论
为什么被折叠?



