当前位置:网站首页>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
边栏推荐
- 用脚本启动和关闭jar包或者war包
- R语言拟合ARIMA模型:使用forecast包中的auto.arima函数自动搜索最佳参数组合、模型阶数(p,d,q)
- Summary 623 of the force buckle solution - add a row to the binary tree
- 【深度强化学习】MAPPO 代码学习
- 背后的力量 | 开启智能化教学新体验 华云数据助力天长市工业学校打造新型IT实训室
- 配置网络源仓库
- SQL中COUNT和SUM
- day10· __init__方法
- 对比服务器,进行正确配置
- 【CC3200AI 实验教程2】疯壳·AI语音人脸识别(会议记录仪/人脸打卡机)-系统测试
猜你喜欢
随机推荐
day6·动态导入模块
自监督深度学习编码蛋白质亚细胞定位的高分辨率特征
背后的力量 | 开启智能化教学新体验 华云数据助力天长市工业学校打造新型IT实训室
day12·魔术方法__new__
Feign 的简单使用
OPENCV学习DAY9
mmap内核实现及物理内存组织结构
字节跳动 Flink 状态查询实践与优化
2022-08-04 clickhouse的join子句
CF1714A 题解
[vulhub]PostGresql远程代码执行漏洞复现(CVE-2018-1058)
DonkeyCar source code reading .4 (project file creation)
day9·类和对象
十分钟教会你如何使用VitePress搭建及部署个人博客站点
响应式织梦模板花店鲜花类网站
美团二面:为什么Redis会有哨兵?
R语言拟合ARIMA模型:使用forecast包中的auto.arima函数自动搜索最佳参数组合、模型阶数(p,d,q)
TVS和ESD的区别
2022-08-04 Select clause for clickhouse
特种期货开户交易权限开通认定标准









