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中忘记配置关联的实体类导致的