![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
组件技术
文章平均质量分 61
各种组件技术交流学习专栏
多喝清晨的粥
希望大家多多提问 交流学习 持续进步...
展开
-
Eureka和Nacos
Eureka和Nacos一.远程调用:启动类中注册RestTemplate@Bean public RestTemplate restTemplate(){ return new RestTemplate(); }1.服务提供者:一次业务中,被其它微服务调用的服务。(提供接口给其它微服务)2.服务消费者:一次业务中,调用其它微服务的服务。(调用其它微服务提供的接口)二.Eureka注册中心1.操作步骤:1.创建项目 导入依赖<dependency> &原创 2021-06-19 16:02:58 · 868 阅读 · 0 评论 -
ES的基本API操作
ElasticSearchES在使用时,会涉及到五个核心概念:索引(Index)、映射(Mapping)、域(Field)、文档(Document)、倒排索引。一、索引1.1 添加索引 (PUT 索引名称)PUT personPUT person11.2 查询单个索引GET person1.3 查询多个索引GET person,person11.4 查询所有索引GET _all1.5删除索引DELETE person1二、域域(Field)相当于数据表中的字段列,当原创 2021-06-20 17:40:02 · 3188 阅读 · 0 评论