Spring Data Elasticsearch 、Elasticsearch服务器、Spring Boot这三个版本号必须要一致才行,不然会有各种报错
pom.xml 中MAVEN引用
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<!--引入elasticsearch-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
官网版本对应说明

本文介绍SpringDataElasticsearch、Elasticsearch服务器及SpringBoot版本一致性的重要性。若版本不匹配,则会引发各种错误。文中提供了Maven配置示例,强调三个组件版本保持一致的必要性。
1319

被折叠的 条评论
为什么被折叠?



