修复 ES 低阶 rest-client 被 Boot BOM 顶成 8.x 导致的启动 NoSuchMethodError,显式钉 7.17.29
This commit is contained in:
@@ -80,12 +80,18 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Elasticsearch 客户端:老集群为 7.x,必须显式钉 7.17(Boot BOM 管理的是 8.x)。
|
<!-- 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>
|
<dependency>
|
||||||
<groupId>co.elastic.clients</groupId>
|
<groupId>co.elastic.clients</groupId>
|
||||||
<artifactId>elasticsearch-java</artifactId>
|
<artifactId>elasticsearch-java</artifactId>
|
||||||
<version>7.17.29</version>
|
<version>7.17.29</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.elasticsearch.client</groupId>
|
||||||
|
<artifactId>elasticsearch-rest-client</artifactId>
|
||||||
|
<version>7.17.29</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user