试图调用方法 org.hibernate.internal.util.xml.XMLHelper.(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)V 但它不存在。它的类 org.hibernate.internal.util.xml.XMLHelper 可从以下位置获得:
最佳答案
我遇到了以下依赖项的相同情况。我做到了。
从 spring-data-envers
中排除 hibernate-envers
。
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-envers</artifactId>
<version>${version.org.springframework.data}</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-envers</artifactId>
</exclusion>
</exclusions>
</dependency>
并直接依赖于它。
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-envers</artifactId>
<version>${version.org.hibernate}</version>
<scope>compile</scope>
</dependency>
关于java - org.hibernate.internal.util.xml.XMLHelper.<init>(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService 但它不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57609552/