elasticSearch和springboot的集成

 

修改build.gradle 

添加依赖关系(红色是elasticsearch的依赖关系)

dependencies {
    // 该依赖对于编译发行是必须的
    compile('org.springframework.boot:spring-boot-starter-web')
 
    // 添加  Spring Data Elasticsearch 的依赖
    compile('org.springframework.boot:spring-boot-starter-data-elasticsearch')

    // 添加  JNA 的依赖
    compile('net.java.dev.jna:jna:4.3.0')
    

    // 该依赖对于编译测试是必须的,默认包含编译产品依赖和编译时依
    testCompile('org.springframework.boot:spring-boot-starter-test')
}

相关文章:

  • 2021-06-01
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-07-17
猜你喜欢
  • 2021-09-09
  • 2021-11-21
  • 2021-12-03
  • 2021-07-15
相关资源
相似解决方案