备注: 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>
这篇博客介绍了在从SpringBoot 2.1.8.RELEASE(对应ES 6.4.3)升级到2.2.4.RELEASE(对应ES 6.8.6)时遇到的返回列表总条数为0的问题。问题根源在于SpringBoot对ES版本的限制。解决方案包括两种:一是直接指定Elasticsearch的版本为6.8.6;二是升级SpringBoot版本到2.2.4.RELEASE以匹配ES的更新版本。
934

被折叠的 条评论
为什么被折叠?



