From 727a424f140623e2acf86747083f2aed9b2513c6 Mon Sep 17 00:00:00 2001 From: qinkai Date: Sat, 25 Mar 2023 23:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- pom.xml | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8e97f97..097ffe5 100644 --- a/README.md +++ b/README.md @@ -41,13 +41,14 @@ ElasticsearchService方法都已通过单元测试,单元测试用例基于jun ### 4.2 新增配置 -starter会根据是否存在elasticsearch.host参数来决定会不会生效 +starter会根据是否存在elasticsearch.version是否等于7.17.7参数来决定会不会生效 ``` elasticsearch: cluster_name: ESCluster1 host: localhost port: 9200 + version: 7.17.7 management: health: @@ -77,6 +78,7 @@ private ElasticsearchService esService; | 参数 | 参数默认值 | 说明 | 举例 | | ----------------------------------- | ---------- | ----------------------------------------------- | --------- | +| elasticsearch.version | | 根据参数决定使用elasticsearch的版本号,只支持7.17.7 | 7.17.7 | | elasticsearch.host | | elasticsearch的master地址 | 127.0.0.1 | | elasticsearch.port | 9200 | elasticsearch的http端口 | 9200 | | elasticsearch.username | | elasticsearch需要认证的用户名,不配置默认不存在 | elastic | diff --git a/pom.xml b/pom.xml index 8d5887e..c3eefa3 100644 --- a/pom.xml +++ b/pom.xml @@ -9,10 +9,6 @@ 4.0.0 - - 3.1.4 - - 2.17.2 5.6.10 1.8