备注: es6.4.3升级到6.8.6 解决返回列表总条数是0的问题 失败原因:springboot限制了es版本 spring-boot-starter-parent 2.1.8.RELEASE对应es6.4.3 版本 spring-boot-starter-parent 2.2.4.RELEASE 对应 es.6.8.6 版本
解决办法:
方法1.指定elasticsearch版
<properties>
<elasticsearch.version>6.8.6</elasticsearch.version>
</properties>
方法2升级springboot版本
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.4.RELEASE</version>
<relativePath/>
</parent>