您的位置:首页 > 编程语言 > Java开发

ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed

2008-02-13 05:01 609 查看
 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'iquestiondaoimpl' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.orm.hibernate3.HibernateTemplate] to required type [org.springframework.orm.hibernate.HibernateTemplate] for property 'hibernateTemplate'

产生这个错误的原因:
实现接口有错误,但看了没有找到错误

经仔细检查,发现
import org.springframework.orm.hibernate.support.HibernateDaoSupport;
错误,
应该是:
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐