解决方案 »
- Win7 64位 安装MyEclipse报错
- 请问如何使用in关键字啊?
- 字符串转成整型/整型转字符串
- spring+struts+hibernate 出错HTTP Status 404 - Servlet action is not available
- HSSF页面设定问题
- 请指教servlet中request.getParameterMap()时出现的问题
- [经典问题????]struts里配置的连接池,如果在java的类和javabean中调用
- 一个基础问题:在Struts等WEB层与hibernate等持久层之间为什么还要加一层Spring等控制层呢?这样做的好处是什么?
- 求助:runtime.exec(cmd)调用oracle8的数据库导入功能imp有问题
- 我钱不多 只有800 算做学费
- 遇到一个棘手的问题,在线急等!
- 怎样生成唯一订单号
<property name="sessionFactory" ref="sessionFactory" />
</bean>
因这我的多个配置文件,用过
<property name="sessionFactory" bean="sessionFactory" />
依然报错,
你是不是搞错了啊。 如果你要是用hibernateTemplate的话,应该继承自HibernateDaoSupport才对吧。
你好好看看Spring的文档。
被我弄混消了..后面好像还有问题,我再试试看
这里少配置了applicationContext.xml <context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/conf/hibernate.cfg.xml,
classpath*:conf/applicationContext.xml
</param-value>
</context-param>
虽然在parm-init中配置了applicationContext.xml
但是在这里还是要在配置applicationContext.xml ,不搞不明白为什么,反正这样配置一下就好了!