为了账号安全,请及时绑定邮箱和手机立即绑定

是架包冲突吗

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister


正在回答

3 回答

没有啊,我这头试了一下,是跳到8-3了啊。。。怎么回事呢,你用的是什么浏览器?

smhwgcd

0 回复 有任何疑惑可以回复我~

因为spring在3.1之后的版本中把 AnnotationSessionFactoryBean与LocalSessionFactoryBean集成到了一起,统一用org\springframework\orm\hibernate4\LocalSessionFactoryBean。 不再有AnnotationSessionFactoryBean类; 但是org.springframework.orm-3.1.1.RELEASE.jar 依然保留有org\springframework\orm\hibernate3这个包,这是为了向下兼容。所以改成hibernate4即可!

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
基于SSH实现员工管理系统之框架整合篇
  • 参与学习       49834    人
  • 解答问题       344    个

本视频教程主要介绍环境搭建和SSH框架整合,逐层深入理解学习

进入课程

是架包冲突吗

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信