NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题

您所在的位置:网站首页 orgelasticsearchclient NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题

NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题

#NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题| 来源: 网络整理| 查看: 265

NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题 原创

kq1983 2021-08-25 09:40:32 博主文章分类:elasticsearch ©著作权

文章标签 elasticsearch maven 解决方案 java 其他 文章分类 其它 其它

©著作权归作者所有:来自51CTO博客作者kq1983的原创作品,请联系作者获取转载授权,否则将追究法律责任NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题https://blog.51cto.com/u_330478/3623931

maven

org.elasticsearch.client elasticsearch-rest-high-level-client 6.5.2

报Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler

 

打开es的maven依赖,发现引入的是2.4.6

NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题_maven

 

 

解决方案,引入es的6.5.2依赖,去掉elasticsearch-rest-high-level-client的es依赖

org.elasticsearch.client elasticsearch-rest-high-level-client 6.5.2 org.elasticsearch elasticsearch org.elasticsearch elasticsearch 6.5.2

 

NoClassDefFoundError: org/elasticsearch/common/xcontent/DeprecationHandler问题_其他_02

 

收藏 评论 分享 微博 QQ 微信 举报

上一篇:zookeeper源码环境搭建

下一篇:Spriing Interceptor转发



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3