Skip to content

Commit

Permalink
说明优化
Browse files Browse the repository at this point in the history
  • Loading branch information
qinkai committed Mar 25, 2023
1 parent d0357bf commit 727a424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 |
Expand Down
4 changes: 0 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@

<modelVersion>4.0.0</modelVersion>
<properties>
<!--项目permission所有依赖版本-->
<permission-lib.version>3.1.4</permission-lib.version>

<!--log4j最新版本,修改log4j漏洞,验证分保-->
<log4j.version>2.17.2</log4j.version>
<elasticsearch.version>5.6.10</elasticsearch.version>
<java.version>1.8</java.version>
Expand Down

0 comments on commit 727a424

Please sign in to comment.