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

spring boot中Elasticsearch默认版本问题

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

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

修改办法:

spring boot中Elasticsearch默认版本问题

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








相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-10-16
  • 2021-11-22
猜你喜欢
  • 2022-01-01
  • 2021-11-19
  • 2021-12-06
  • 2021-08-22
  • 2021-11-20
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案