`
xp9802
  • 浏览: 1214331 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

配置hibernate关联关系时的配置错误

阅读更多

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory_stoller' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.itmg.stroller.dao.model.StrolllerDataModel

Caused by: org.hibernate.MappingException: Association references unmapped class: com.XXX.XXX

 

这个报错是由于我在spring配置文件applicationContext.xml的MappingResource中忘记配置关联的实体类导致的

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics