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