当前位置:网站首页>Simple use of Feign
Simple use of Feign
2022-08-05 13:58:00 【monkeySix】
Create Project A: Eureka Project as Service Discovery and Registry
Add annotations to the main class: @EnableEurekaServer as a service discovery and registration center service
Create project B: service-provider as interface service provider
Add an annotation to the main class: @EnableDiscoveryClient finds the registry service and registers its own service
Configuration file: 1. Add the project name; 2. Add the address of the Eureka registry
Create project C: service-consumer interface consumer
Add an annotation to the main class: @EnableDiscoveryClient finds the registry service and registers its own service
@EnableFeignClients declared as feign clients
Configuration file: 1. Add the project name; 2. Add the address of the Eureka registry
Define a feign interface, which is the interface of service-provider
Introducing this feign interface into project C, calling the method of this feign interface directly can be equivalent to calling the local method, calling the method of service B: service-provider
边栏推荐
猜你喜欢

day12·魔术方法__new__

Qt实现多国语言切换

【CC3200AI 实验教程2】疯壳·AI语音人脸识别(会议记录仪/人脸打卡机)-系统测试

华为分析&联运活动,助您提升游戏总体付费

Kernel implementation of buddy allocator

@2023 Graduate Candidates: How to Spend the "Golden Period" of Summer Research Exam Preparation

BufferedReader和BufferedWriter

ApiPost使用教程

图扑软件数字孪生油气管道站,搭建油气运输管控平台

Eolink使用教程
随机推荐
华为设备Smart Link和Monitor Link配置命令
VINS-Mono reading guide
R语言使用ggpubr包的ggtexttable函数可视化表格数据(直接绘制表格图或者在图像中添加表格数据)、设置theme主题参数自定义表格中主体内容的字体颜色、填充色并向右对齐
第五讲 测试技术与用例设计
Capacity upgrade helps computing power flow, the acceleration moment of China's digital economy
Memory mapping principle and mmap
day6·动态导入模块
荆棘与玫瑰:基础服务架构师的成⻓之路PPT
《ABP Framework 极速开发》教程首发
day11· 对象方法、静态方法、类方法
IIoT系统架构
链表面试题-刷题
mmap kernel implementation and physical memory organization
AntDesign中Table的选择项居右显示
EMQ & IoTDB 联合 Meetup 杭州站 | 8月13日线下场报名开启
更新数据到数据库和缓存的步骤
pandas连接oracle数据库并拉取表中数据到dataframe中、筛选当前时间(sysdate)到一分钟之前的所有数据(筛选一分钟之内的数据)
5G ToB业务介绍及时延需求
块分配器SLAB的内核实现
DSPE-PEG-Azide,DSPE-PEG-N3,磷脂-聚乙二醇-叠氮具有亲水和疏水性