springboot 使用elasticsearch-rest-high-level-client操作 es

2021-09-18 14:13

阅读:574

标签:arch   elastic   使用   sea   ast   otf   操作   出现   rgba   https://mp.weixin.qq.com/s/fgi6Xd1Xbs4RJSDGBRcZxQ es7.x以上的版本引用了6.8的elasticsearch-rest-client包会出现java.lang.ClassNotFoundException: org.elasticsearch.client.Cancellable 需要将其exclude,引入7.x版本的。 implementation(‘org.elasticsearch.client:elasticsearch-rest-high-level-client:7.12.1‘) { exclude group: ‘org.elasticsearch.client‘, module: ‘elasticsearch-rest-client‘ } implementation ‘org.elasticsearch:elasticsearch:7.12.1‘ implementation ‘org.elasticsearch.client:elasticsearch-rest-client:7.12.1‘  springboot 使用elasticsearch-rest-high-level-client操作 es标签:arch   elastic   使用   sea   ast   otf   操作   出现   rgba   原文地址:https://www.cnblogs.com/lijiale/p/14886323.html


评论


亲,登录后才可以留言!