首页 > 其他分享 >080_SpringBoot集成ES

080_SpringBoot集成ES

时间:2022-10-27 16:55:28浏览次数:56  
标签:依赖 SpringBoot 自定义 080 模块 版本 配置 ES

目录

官方文档

Elasticsearch clients

image.png

Java REST Client

image.png

Java High Level REST Client

image.png
image.png

Getting started

image.png

Maven configuration

image.png

初始化 Initialization

image.png

搭建测试环境

创建空项目

image.png

创建模块

image.png
image.png
image.png

选择依赖 NoSQL-Spring Data Elasticsearch

image.png
image.png

配置项目SDK

image.png

配置模块JDK

image.png

配置编译版本 Java Compiler

image.png

配置JavaScript版本

image.png

创建模块成功

image.png

查看ES依赖版本和ES版本是否一致,如果不一致,自定义

:::info
ES依赖版本为:6.8.6
ES版本为:7.6.1
版本不一致,需要自定义ES依赖版本,和ES版本一致
:::
image.png

查看ES依赖版本

image.png

自定义ES依赖版本

image.png
image.png

编写ES客户端配置类 ElasticSearchClientConfig

image.png

查看源码

RestClientAutoConfiguration

image.png

ElasticsearchAutoConfiguration

image.png

ElasticsearchProperties

image.png

RestClientConfiguration

image.png
image.png

RestHighLevelClient

image.png

标签:依赖,SpringBoot,自定义,080,模块,版本,配置,ES
From: https://www.cnblogs.com/wl3pb/p/16832829.html

相关文章

  • hashlib加密模块,subprocess模块,logging日志模块
    hashlib加密模块1.何为加密 将明文数据处理成密文数据让人无法看懂2.为什么加密 保证数据的安全3.如何判断数据是否是加密的 一串没有规律的字符串(数字、字母、符......
  • ESP32 多线程入门实验
    一、线程创建函数函数voidxTaskCreate(pdTASK_CODEpvTaskCode,constportCHAR*constpcNane,unsignedportSHORTusStackDepth,void*pvParameters,unsigne......
  • SSM中使用RESTful风格开发
    RESTful请求方式查询:GET添加/保存:POST删除:DELET修改:PUT SSM查询使用RESTful风格无参请求一般用于查询全部(selectAll)//设置当前请求方法为GET,表示......
  • LeetCode_LinkedList_82. Remove Duplicates from Sorted List II 删除排序链表中的重
    目录​​一,题目描述​​​​英文描述​​​​中文描述​​​​二,解题思路​​​​三,AC代码​​​​C++​​​​四,解题过程​​​​第一博​​一,题目描述英文描述Giventheh......
  • iptables系列教程
    2022-10-2014:47:32星期四iptables系列教程(一)|iptables入门篇iptables系列教程(二)|iptables语法规则......
  • linux快捷方式.destop文件的配置项
    [DesktopEntry]必填,表明该文件是一个DesktopEntry文件,节点意思十分明显,桌面入口。DesktopEntry实际上是一个文件标准,该标准由FreeDesktop.org制定;Comment这是......
  • LeetCode_Array_73. Set Matrix Zeroes (C++)
    目录​​1,题目描述​​​​2,思路​​​​3,代码【C++】​​​​4,测试效果​​1,题目描述Givenamxnmatrix,ifanelementis0,setitsentirerowandcolumnto0.Do......
  • PAT_甲级_1004 Counting Leaves (30分) (C++)
    目录​​1,题目描述​​​​题目大意​​​​输入:​​​​输出:​​​​2,解题思路​​​​关键:​​​​存储结构:​​​​dfs算法实现:​​​​3,代码【C++】​​1,题目描述 Samp......
  • PAT_甲级_1046 Shortest Distance (20分) (C++)【签到题】
     1,题目描述SampleInput:51241493132541 SampleOutput:3107题目大意有N个出口,从1开始,依次给出出口i+1~i的距离(i从1开始)。最后一个数字为1~N的距离。给出任......
  • 使用RestTemplate上传文件
    1、使用form表单上传文件文件发送:@TestpublicvoidstoreFile2(){Filefile=newFile("D:\\test.txt");StringuploadUrl="http://127.0.0.1:8080/uplo......