亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

是架包沖突嗎

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


正在回答

2 回答

因為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 回復 有任何疑惑可以回復我~

我也報了這個錯誤,也在網上查過,感覺有八成是各個bean里的書寫錯誤。仔細排查可能會找到

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

舉報

0/150
提交
取消

是架包沖突嗎

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號