gpt4 book ai didi

elasticsearch - Spring boot + Spring 数据 Elasticsearch + Elasticsearch 5.6.0

转载 作者:行者123 更新时间:2023-12-02 22:18:57 25 4
gpt4 key购买 nike

我正在尝试使用 Elastic Search 5.4.1 构建 Spring Boot App(1.5.9.RELEASE),当我运行 maven > install 时遇到此冲突

failed to run

我的 pom.xml 是

<properties>
...
<elasticsearch.version>5.4.1</elasticsearch.version>
</properties>
<repositories>
<repository>
<id>spring-libs-snapshot</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/libs-snapshot</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.0.0.RC2</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>5.1.1</version>
</dependency><dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency><dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

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

欢迎任何帮助,谢谢!

最佳答案

这是由于 spring-data-elasticsearch、elasticsearch 和 springboot 之间的兼容性问题。
看看这个并相应地改变

https://github.com/spring-projects/spring-data-elasticsearch/wiki/Spring-Data-Elasticsearch---Spring-Boot---version-matrix

关于elasticsearch - Spring boot + Spring 数据 Elasticsearch + Elasticsearch 5.6.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47994570/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com