- 10
- 0
- 约1.79千字
- 约 8页
- 2022-03-26 发布于广东
- 举报
《SpringCloud微服务实战》
知识点:OpenFeign服务调用
OpenFeign服务调用
1.新建模块 : cloud-consumer-order-Feign-80
2.修改 POM,加上openfeign的maven坐标
dependency
groupIdorg.springframework.cloud/groupId
artifactIdspring-cloud-starter-openfeign/artifactId
/dependency
OpenFeign服务调用
2.编写 YML
#配置端口号
server:
port: 80
spring:
application:
name: cloud-order-service
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: :7001/eureka/,:7002/eureka/
OpenFeign服务调用
3.编写主启动类
import org.springframework.boot.SpringApplication;
import org.springframework.boot
您可能关注的文档
- 金融风险管理(第三版)习题1.docx
- 金融风险管理(第三版)习题2.docx
- 金融风险管理(第三版)习题3.docx
- 金融风险管理(第三版)习题4.docx
- 金融风险管理(第三版)习题5.docx
- 金融风险管理(第三版)习题6.docx
- 金融风险管理(第三版)习题7.docx
- 金融风险管理(第三版)习题8.docx
- 金融风险管理(第三版)习题9.docx
- 金融风险管理(第三版)习题10.docx
- 2025年第四季度职工政治理论学习抽考测试卷及答案.docx
- 2025-2026时政热点考试测试卷及答案.docx
- 2026临家食品安全操作培训——楼面篇 考核试卷.docx
- 2026年3月“每月一测”知识竞赛测试卷及答案.docx
- 202603--三危4.0安全培训暨GB6441-2025培训测试卷及答案.docx
- 2026值机换季培训考试测试卷及答案.docx
- 2026信息科技学考模拟卷测试题及答案.docx
- 世界银行 -津巴布韦货币和汇率政策扭曲的财政成本 The Fiscal Costs of Monetary and Exchange Rate Policy Distortions in Zimbabwe.pdf
- 世界银行 - 移民在非洲城市劳动力市场的境遇如何How Do Migrants Fare in Africa’s Urban Labor Markets.pdf
- 世界银行 - 巴基斯坦贫困地图 Pakistan Poverty Map 2019–2020.pdf
最近下载
- 中南大学2021-2022学年第1学期《线性代数》期末考试试卷(B卷)及标准答案.docx
- 最精典的蜂胶__培训课件.ppt VIP
- (四调)武汉市2026届高三年级四月调研考试数学试卷(含答案及解析).docx
- 四库全书基本概念系列文库:枝江县志.pdf VIP
- 痛风性关节炎汇报ppt课件.pptx VIP
- ABC新版人教版小学五年级下册语文期末综合试卷(3套含答案解析).docx
- 2026Micro800系列PLC产品介绍.pptx VIP
- 2026年高考作文备考之“十大主题预测”专题(审题立意+范文+素材拓展).docx VIP
- YonSuite财务模块标准操作手册(应付管理).pdf VIP
- 建筑刚性防水套管隐蔽工程检查验收记录.doc VIP
原创力文档

文档评论(0)