org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.cn.bireport.domain.ManageRolePriMemu
org.hibernate.MappingException: Association references unmapped class: com.cn.bireport.domain.ManageRolePriMemu
刚开始的时候,所对应的映射文件是ManageRolePriMemu.xml,而hibernate.cfg.xml文件里是ManageRolePriMemu.hbm.xml
现在修改成<mapping resource="com/cn/bireport/domain/ManageRolePriMemu.hbm.xml" />
程序能跑起来了