一、背景
最近在做录制回放平台, 因为需要把部分数据存储到ES,因此特地实践和调研了一把,把相关材料记录一下;
elastcishearch 版本:7.14.2
spring boot版本:2.6.13
spring-boot-starter-data-elasticsearch: 2.6.13
版本参考文档 https://docs.spring.io/spring-data/elasticsearch/docs/5.2.0-M1/reference/html/#elasticsearch.clients

二、参考文档
https://learnku.com/docs/elasticsearch73/7.3
https://docs.kilvn.com/elasticsearch/docs/6.html
https://spring.io/projects/spring-data-elasticsearch/
三、接入步骤
3.1 maven配置
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.0</version>
<relativePath/>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<scope>compile</scope>
</dependency>
</dependencies>

最低0.47元/天 解锁文章
157

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



