一定要保证:我们刀日德依赖,和安装的ES版本一致!!!
默认的版本可能和本地安装的版本不一致:
本地使用7.6.1,而springboot es starter里面使用的是6.8.7
相关的源码
ES - SpringBoot 集成 + ES API接口讲解
原文:https://www.cnblogs.com/frankcui/p/14766539.html