- 导入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
- application.yml加入如下配置
spring:
elasticsearch:
rest:
uris: http://192.168.6.129:9200
标签:Spring,boot,elasticsearch,Boot,spring,es
From: https://www.cnblogs.com/insilently/p/17653282.html