【发布时间】:2019-08-12 00:54:33
【问题描述】:
在我的 pom.xml 中,我添加了以下依赖项:
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>4.0.1.Final</version>
</dependency>
因为之前,在我的日志控制台中出现了同样的错误,java.lang.ClassNotFoundException: org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner,然后我添加了 hibernate.anotations 依赖,但错误仍然存在,需要我另一个依赖来让它启动吗?
当我将persistence.xml 添加到我的项目时,这个问题就开始了。 我正在使用 Jboss EAP 6.1 服务器。
【问题讨论】:
标签: hibernate jakarta-ee jboss persistence pom.xml