是架包沖突嗎
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
2017-04-23
因為spring在3.1之后的版本中把 AnnotationSessionFactoryBean與LocalSessionFactoryBean集成到了一起,統一用org\springframework\orm\hibernate4\LocalSessionFactoryBean。?不再有AnnotationSessionFactoryBean類;?但是org.springframework.orm-3.1.1.RELEASE.jar 依然保留有org\springframework\orm\hibernate3這個包,這是為了向下兼容。所以改成hibernate4即可!
2017-04-07
我也報了這個錯誤,也在網上查過,感覺有八成是各個bean里的書寫錯誤。仔細排查可能會找到