修复 elasticsearch-rest-client 被 Boot BOM 顶成 8.x 导致启动失败 (#24)
This commit was merged in pull request #24.
This commit is contained in:
@@ -80,12 +80,18 @@
|
||||
</dependency>
|
||||
|
||||
<!-- Elasticsearch 客户端:老集群为 7.x,必须显式钉 7.17(Boot BOM 管理的是 8.x)。
|
||||
elasticsearch-java 传递引入 elasticsearch-rest-client(低阶 RestClient)与 jakarta json -->
|
||||
elasticsearch-java 与低阶 elasticsearch-rest-client 都要钉——只钉前者的话
|
||||
rest-client 会被 Boot BOM 顶成 8.x,运行期 NoSuchMethodError(SafeResponseConsumer) -->
|
||||
<dependency>
|
||||
<groupId>co.elastic.clients</groupId>
|
||||
<artifactId>elasticsearch-java</artifactId>
|
||||
<version>7.17.29</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.elasticsearch.client</groupId>
|
||||
<artifactId>elasticsearch-rest-client</artifactId>
|
||||
<version>7.17.29</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
|
||||
Reference in New Issue
Block a user