From da96ba57086703e911b760a0db31cc1097a3fbcc Mon Sep 17 00:00:00 2001 From: xpc Date: Tue, 23 Jan 2024 23:32:59 +0800 Subject: [PATCH] =?UTF-8?q?v2.0.0-beta5=20=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=8F=8A=E6=97=A5=E5=BF=97=E7=BB=86=E8=8A=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dromara/easyes/common/utils/RestHighLevelClientUtils.java | 1 + easy-es-test/src/test/resources/application.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/easy-es-common/src/main/java/org/dromara/easyes/common/utils/RestHighLevelClientUtils.java b/easy-es-common/src/main/java/org/dromara/easyes/common/utils/RestHighLevelClientUtils.java index 5a9c5322..669f3b30 100644 --- a/easy-es-common/src/main/java/org/dromara/easyes/common/utils/RestHighLevelClientUtils.java +++ b/easy-es-common/src/main/java/org/dromara/easyes/common/utils/RestHighLevelClientUtils.java @@ -27,6 +27,7 @@ public class RestHighLevelClientUtils { } RestHighLevelClient restHighLevelClient = restHighLevelClientMap.get(restHighLevelClientId); if (restHighLevelClient == null) { + LogUtils.formatError("restHighLevelClientId: %s can not find any data source, please check your config", restHighLevelClientId); ExceptionUtils.eee("找不到RestHighLevelClient,restHighLevelClientId:%s", restHighLevelClientId); } diff --git a/easy-es-test/src/test/resources/application.yml b/easy-es-test/src/test/resources/application.yml index 6f5eb39f..69d30eaa 100644 --- a/easy-es-test/src/test/resources/application.yml +++ b/easy-es-test/src/test/resources/application.yml @@ -22,7 +22,7 @@ easy-es: ds1: address: 10.20.64.228:9200 # 数据源1 ds2: - address: 49.234.28.111:9200 # 数据源2 + address: 10.18.2.45:9200 # 数据源2 #username: '若无可去掉此行' #password: '若无可去掉此行'