spring+hibernate+sqlserver

新建一个项目,加上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....

你可能感兴趣的:(spring,Hibernate,框架,Web,xml)