hibernate 异常处理

xiaoxiao2022-12-01  164

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" /> 程序能跑起来了
转载请注明原文地址: https://www.6miu.com/read-4979213.html

最新回复(0)