java如何在Spring Boot Maven项目中正确添加数据REST依赖项?
我尝试使用以下依赖项添加Spring数据REST依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
添加此依赖项后,我捕获一个异常-java.lang.NoSuchMethodError: org.springframework.plugin.core.PluginRegistry.of(Ljava/util/List;)Lorg/springframework/plugin/core/PluginRegistry;
行动建议:Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry
我尝试添加此依赖项以解决此问题:
<dependency>
<groupId>org.springframework.plugin</groupId>
<artifactId>spring-plugin-core</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
但这对我没有帮助。 我如何解决这个问题
我使用Spring引导版本-2.2.7。版本,Maven版本-3.3.9
共 (0) 个答案