当前位置:网站首页>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 .
边栏推荐
猜你喜欢
[compilation principle] lexical analysis design and Implementation
电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
C simple question one
MATLAB signal processing [Q & A essays · 2]
Design and implementation of spark offline development framework
[stm32+esp8266 connect Tencent cloud IOT development platform 2] stm32+esp8266-01s connect Tencent cloud
Oracle database backup and recovery
SAP HR reward and punishment information export
Interface
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
随机推荐
Understand TCP's three handshakes and four waves with love
Access database query all tables SQL
2022注册测绘师备考开始 还在不知所措?手把手教你怎么考?
B_QuRT_User_Guide(39)
Unity3d learning notes 5 - create sub mesh
Anxin can internally test offline voice module vb-01 to communicate with esp-c3-12f
ASP. Net core middleware request processing pipeline
LM12丨Rolling Heikin Ashi二重K线滤波器
[compilation principle] lexical analysis design and Implementation
2022 届的应届生都找到工作了吗?做自媒体可以吗?
SQL database execution problems
List. How to achieve ascending and descending sort() 2020.8.6
Interface
2022 certified surveyors are still at a loss when preparing for the exam? Teach you how to take the exam hand in hand?
How to login and enable synchronization function in Google browser
POJ2392 SpaceElevator [DP]
Home appliance industry channel business collaboration system solution: help home appliance enterprises quickly realize the Internet of channels
SAP HR social work experience 0023
B_QuRT_User_Guide(37)
SAP HR reward and punishment information export