Advertisement

使用SpringBoot集成Elasticsearch进行实战操作

阅读量:

1.1. 集成方式

在Spring Boot框架中,实现Elasticsearch的集成共存在四种不同的技术路径:

REST Client

Jest

Spring Data

Spring Data Elasticsearch Repositories

本研究将采用最后两种技术手段,分别用于建立与Elasticsearch的连接并执行相关操作

1.2. 环境与配置

服务端:采用elasticsearch-6.3.2版本的服务器设备共1台

客户端:使用elasticsearch 6.4.1版本

服务端配置文件:elasticsearch.yml

复制代码
 cluster.name: my-application

    
 network.host: 192.168.1.134
    
 http.port: 9200
    
    
    
    

/etc/security/limits.conf

复制代码
 cheng soft nofile 65536

    
 cheng hard nofile 65536
    
    
    
    

/etc/sysctl.conf

复制代码
    vm.max_map_count=262144
    
    

1.3.

全部评论 (0)

还没有任何评论哟~