spring boot中Elasticsearch默认版本问题

这是今天遇上的一个问题。

image

添加的依赖是7.2.0版本的Elasticsearch,但是其中有两项是6.4.3的,导致我从其他地方移植过来的代码报错。

据大神说,这是因为spring boot中默认的Elasticsearch版本是6.4.3的。

修改办法:

image

在properties中修改,当然也可以用排除然后在添加这两个的依赖,不过这个办法是最简洁的办法。








posted @ 2019-07-29 22:16  yeren2046  阅读(3223)  评论(1编辑  收藏  举报