源码地址
- GitHub:https://github.com/battcn/elasticsearch-spring-boot
- 码云:https://gitee.com/battcn/elasticsearch-spring-boot/
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>
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:1837307557@qq.com
有兴趣的可以联系本人(Pull Request),参与进来一起开发