Spring Boot2.1.2在https://github.com/spring-projects/spring-boot/blob/v2.1.2.RELEASE/spring-boot-project/spring-boot-dependencies/pom.xml中将Elasticsearch版本定义为6.4.3。
然而,Spring Data Elasticsearch在https://github.com/spring-projects/spring-data-elasticsearch/blob/3.1.4.RELEASE/pom.xml中将版本定义为6.2.2
因此,如果我们不强制使用版本,Gradle将使用Elasticsearch库的最高版本6.4.3。是否需要手动将Elasticsearch版本降级至6.2.2,如https://github.com/spring-projects/spring-data-elasticsearch上的兼容版本图表所示
发布于 2019-02-08 20:32:50
Spring Boot提供的Elasticsearch 6.4.3版本不需要降级,因为Spring Data Elasticsearch 3.1.4已经通过与Elasticsearch 6.4.3版本的集成测试。
https://stackoverflow.com/questions/54565553
复制相似问题