---
title: "spring+hibernate+sqlserver"
author: "Riancy007"
date: "2007-12-27T17:55:47Z"
tags: []
slug: "spring-hibernate-sqlserver"
draft: false
lastmod: "2007-12-27T17:55:47Z"
id: 151306
url: "https://riancy007.iteye.com/blog/151306"
---

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