需要先后顺序,先建立hibernate框架,spring框架,最后用hibernate创建实体类,顺序不能打乱
第一步配置hibernate,一定要选择hibernate3.2版本,取消勾选create session factory class,点 √ 导入库文件hibernate3.2.7不用添加架包,创建后点击no
添加spring框架,
applicationContext.xml大致内容如下:
<beans xmlns=“http://www.springframework.org/schema/beans”