原因 版本对应有问题!!!!!!!!!!!!!
正确版本对应为
es 安装版本为6 版本(6.2.2),springboot父版本为2.1.3.RELESE(对应es jar 版本为3.1.5)
或者
es安装版本为7版本(7.6.2),springboot父版本为2.3.0.RELESE (对应es jar 版本为4.0.0)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
不指定版本依赖父版本