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: '若无可去掉此行'