spring hibernate启动报错 注解类加载失败,是不是jar包有问题啊

Causedby:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwit... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/hib-config.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 ServletContext resource [/WEB-INF/hib-config.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Error applying BeanValidation relational constraints....... 展开
 我来答
匿名用户
2016-06-25
展开全部
Error creating bean with name 'userDaoImpl': Injection of resource dependencies failed;

Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory';

Hibernate的 'sessionFactory' 有问题。。。。。。。。。。。。
追问

这是我hib-config.xml感觉配置没有问题   你说的Hiberate的‘sessionFactory’有问题是指?具体怎么解决?

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式