Elastic Search 6.2.2和Spring Data Rest

时间:2018-07-05 16:51:28

标签: spring-boot elasticsearch spring-data-rest spring-data-elasticsearch

在此page中,它表示Spring Data Elastic Search 3.1.X支持Elastic Search 6.2.2。 Spring Data Rest和Spring Boot也可以使用吗?如果是,我的gradle文件中需要什么依赖项。

1 个答案:

答案 0 :(得分:0)

是的,Spring Data弹性搜索3.1.x支持ES 6。

buildscript {
  dependencies {
    classpath "io.spring.gradle:dependency-management-plugin:0.4.0.RELEASE"
  }
}

apply plugin: "io.spring.dependency-management"

dependencyManagement {
  imports {
    mavenBom 'org.springframework.data:spring-data-releasetrain:Kay-SR8'
  }
}

dependencies {
    compile 'org.springframework.boot:spring-boot-starter-web'
    compile 'org.springframework.boot:spring-boot-starter-data-jpa'
    compile 'org.springframework.data:spring-data-rest'
    compile 'org.springframework.data:spring-data-elasticsearch:3.0.8.RELEASE'
}repositories {
    maven {
        url 'https://repo.spring.io/libs-release'
    }
}