当前位置:网站首页>Take you hand in hand to build feign with idea
Take you hand in hand to build feign with idea
2022-07-07 23:38:00 【Rain fish in summer】
List of articles
Preface
At present, micro services have become the mainstream , This article will take you by hand idea structure feign.
One 、feign What is it? ?
feign yes spring cloud Call framework of service consumer side in , simply , There are many services in microservices , It can be done by feign To call , Instead of calling directly .
Two 、 Specific operation steps
1. newly build feign modular
As shown in the figure below ,


Name the module ,feign
2. Modify the configuration file
The parent file introduces the new feign modular ,feign Import parent file , Remember to refresh and take effect 
introduce feing rely on , Also register to eureka The server 
3. Run the project
Simply write a test class , And add corresponding notes 
Start project , Include eureka、web、feign,
Access in a browser , You'll find that ,web、feign Have been registered to eureka in ,
Request in browser , as follows , success 
I'm afraid you don't understand , Let me sort out the logic with you again , The original request was a direct request , Now it becomes a request feign, adopt feign To request .
summary
Follow the above steps , You must have learned to use idea structure feign. If you have read this article , Be a good person and praise , It's not easy to write , If the article is flawed , Please write a comment , Make a friend and give a compliment .
边栏推荐
- 家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
- ASP. Net open web page
- B_QuRT_User_Guide(40)
- Windows set redis to start automatically
- [STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware
- USB (XVIII) 2022-04-17
- SAP HR 社会工作经历 0023
- B_QuRT_User_Guide(39)
- StringUtils工具类
- Interface
猜你喜欢

MongoDB快速入门

ESP at installation esp8266 and esp32 versions

2021icpc Shanghai h.life is a game Kruskal reconstruction tree

0-1 knapsack problem

Summary of SQL single table query 2020.7.27

LM12丨Rolling Heikin Ashi二重K线滤波器

移动端异构运算技术 - GPU OpenCL 编程(基础篇)

C cat and dog

2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?

Three questions TDM
随机推荐
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
Possible SQL for Oracle table lookup information
Live-Server使用
Unity3d learning notes 5 - create sub mesh
建筑建材行业SRM供应商云协同管理平台解决方案,实现业务应用可扩展可配置
Lm12 rolling heikin Ashi double K-line filter
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
B_QuRT_User_Guide(37)
USB (XIV) 2022-04-12
Right click the idea file to create new. There is no solution to create new servlet
C simple question 2
高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
Idea automatically generates serialVersionUID
Access database query all tables SQL
Dependency injection
Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process
windows设置redis开启自动启动
New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
Svn relocation
UE4_ Ue5 panoramic camera