SSH搭建时的错误之(2)Exception sending context initialized event to listener instance of class org.springfra

来源:互联网 发布:数据库去重复关键字 编辑:程序博客网 时间:2024/05/14 04:58

SSH搭建时的错误之(2)

严重: Exception sending context initialized event to listener instance of class org.springframework.

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.itmg.stroller.dao.model.StrolllerDataModel
at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2380)
at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2662)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)

1、有可能Hibernate逆向工程时有关联的表没有全部导入进来,可以先用简单的先试试

2、导入的包冲突了,



0 0
原创粉丝点击