SpringBoot 整合 Elasticsearch:7.6.2

版本升级

根据 EL 版本选择 Spring Boot 版本

Spring Data Release Train Spring Data Elasticsearch Elasticsearch Spring Boot
Moore 3.2.x 6.8.8 2.2.x
Lovelace 3.1.x 6.2.2 2.1.x
Kay[1] 3.0.x[1] 5.5.0 2.0.x[1]
Ingalls[1] 2.1.x[1] 2.4.0 1.5.x[1]

	org.springframework.boot
	spring-boot-starter-parent
	2.2.0.RELEASE
	



	org.springframework.boot
	spring-boot-starter-data-elasticsearch

application.yml

spring:
  data:
    elasticsearch:
      cluster-name: elasticsearch-cluster
      cluster‐nodes: 192.168.198.241:9300,192.168.198.241:9301,192.168.198.241:9302

配置完成即可参照5.x步骤继续

你可能感兴趣的:(ElasticSearch)