0

我在执行 jar 时遇到异常:

Exception in thread "main" java.lang.NoSuchMethodError:org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource.<init>

(Lorg/springframework/core/type/AnnotationMetadata;Ljava/lang/Class;Lorg/springframework/core/io/ResourceLoader;Lorg/springframework/core/env/Environment;)V

我在 pom.xml 中添加了以下依赖项:

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-commons</artifactId>
    <version>1.13.10.RELEASE</version>
</dependency>

父母为:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.2.3.RELEASE</version>
</parent>
4

1 回答 1

0

在经过数小时的点击和试用后添加依赖项时工作正常:

    <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-commons</artifactId>
        <version>1.10.0.RELEASE</version>
    </dependency>
于 2018-02-15T07:26:05.730 回答