首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

spring与hibernate整合中出现的异常

2013-09-11 
spring与hibernate整合中出现的错误刚开始出现下列错误:org.springframework.beans.factory.BeanCreationE

spring与hibernate整合中出现的错误
刚开始出现下列错误: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in class path resource [beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Dialect class not found: hibernate.dialect.MySQL5Dialect


找了半天发现Dialect class not found: hibernate.dialect.MySQL5Dialect
即hibernate的方言配置错了。应为hibernate.dialect=org.hibernate.dialect.MySQL5Dialect


我的异常网推荐解决方案:org.springframework.beans.factory.BeanCreationException:,http://www.myexception.cn/j2ee/10759.html

热点排行