我正在使用unitils进行hibernate orm测试。我使用了hibernate版本5.0.10-Final和最新的unitils版本3.4.3。我总是收到以下错误:"org.unitils.core.UnitilsException:加载模块类名称为org.unitils.orm.hibernate.HibernateModule ->的核心模块hibernate时发生异常,原因是: org.unitils.core.UnitilsException:无法加载名称为org.hibernate.cfg.AnnotationConfiguration的类“
我需要其他配置吗?或者是另一个版本?
发布于 2017-04-06 03:25:44
您只需添加到unitils配置的下一行:
HibernateModule.configuration.implClassName=org.hibernate.cfg.Configuration
https://stackoverflow.com/questions/40280659
复制相似问题