All Projects → battcn → elasticsearch-spring-boot

battcn / elasticsearch-spring-boot

Licence: other
elasticsearch-spring-boot

Programming Languages

java
68154 projects - #9 most used programming language

简介

源码地址

elasticsearch-spring-boot-starter 是一款建立在 elasticsearch-rest-high-level-client 基础之上的工具包

项目介绍

  • elasticsearch-spring-boot-autoconfigure :具体代码
  • elasticsearch-spring-boot-starter : 自动装配 elasticsearch 的扩展包

如果该项目对您有帮助,欢迎 Fork 和 Star,有疑问可以加 QQ:1837307557一起交流 ,如发现项目BUG可以提交Issue

使用

  • pom.xml中引入依赖:
<properties>
    <java.version>1.8</java.version>
    <!-- 指定ES版本(重要) -->
    <elasticsearch.version>7.1.1</elasticsearch.version>
</properties>
<!-- 建议7.X版本用户使用 -->
<dependency>
    <groupId>com.battcn</groupId>
    <artifactId>elasticsearch-spring-boot-starter</artifactId>
    <version>1.0.1.RELEASE</version>
</dependency>

properties

spring.elasticsearch.rest.cluster-name=elasticsearch
spring.elasticsearch.rest.uris=http://localhost:9200
spring.elasticsearch.rest.http-client.max-total=200
spring.elasticsearch.rest.http-client.default-max-per-route=100
spring.elasticsearch.rest.http-client.connect-timeout=10000
spring.elasticsearch.rest.http-client.read-timeout=10000
spring.elasticsearch.rest.http-client.connection-request-timeout=10000

贡献者

Levin:[email protected]

如何参与

有兴趣的可以联系本人(Pull Request),参与进来一起开发

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].