Springboot集成ElasticSearch2.4.5

Eclipse安装STS(Spring Tool Suite (STS) for Eclipse)插件下载 适用于eclipse4.7.2版本
http://download.springsource.com/release/STS/3.9.2.RELEASE/dist/e4.7/spring-tool-suite-3.9.2.RELEASE-e4.7.2-win32-x86_64.zip

将ElasticSearch 安装成Windows服务(Service)
(1)切换到ElasticSearch的bin目录,在地址栏输入cmd,cmd下执行执行service.bat install
(2)启动ElasticSearch服务 cmd下输入 service.bat start

Head插件安装
bin目录下,cmd界面,cmd下执行 plugin.bat install mobz/elasticsearch-head
然后浏览器中输入运行
http://localhost:9200/_plugin/head/

https://blog.csdn.net/tianyaleixiaowu/article/category/6952508
https://github.com/wqxcloud/elasticsearch-head
https://www.cnblogs.com/Alandre/p/6877512.html
https://www.cnblogs.com/ljhdo/p/4887557.html
https://blog.csdn.net/u014016928/article/details/41723485
https://www.elastic.co/downloads/elasticsearch
https://www.cnblogs.com/dalaoyang/p/8990989.html
https://blog.csdn.net/tianyaleixiaowu/article/details/72833940
https://blog.csdn.net/wwd0501/article/details/78652850
https://blog.csdn.net/u011781521/article/details/77139701 安装

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Spring Boot中集成Elasticsearch时,需要进行mapping配置。根据引用\[2\]中的代码示例,可以创建一个名为EsGoodsRepository的接口,并继承ElasticsearchRepository。在该接口中,可以定义对应的实体类和主键类型。这样就可以通过该接口来进行Elasticsearch的操作了。 另外,根据引用\[1\]中的说明,为了允许外部访问Elasticsearch,需要修改配置文件。配置文件的路径在config/elasticsearch.yml。可以使用vi命令打开该文件进行修改。 总结起来,集成Elasticsearch时,需要创建EsGoodsRepository接口,并继承ElasticsearchRepository,同时进行mapping配置。另外,还需要修改Elasticsearch的配置文件以允许外部访问。 #### 引用[.reference_title] - *1* *3* [SpringBoot集成Elasticsearch7.4 实战(一)](https://blog.csdn.net/qq_37284798/article/details/128718272)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [SpringBoot集成elasticsearch使用(增删改查)](https://blog.csdn.net/ljfgyy0205/article/details/130086495)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值