当前位置:网站首页>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 .
边栏推荐
猜你喜欢
Explain
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
B_QuRT_User_Guide(38)
2022 Season 6 perfect children's model Shaanxi finals came to a successful conclusion
PCB wiring rules of PCI Express interface
S2b2b mall solution of intelligent supply chain in packaging industry: opening up a new ecosystem of e-commerce consumption
Home appliance industry channel business collaboration system solution: help home appliance enterprises quickly realize the Internet of channels
建筑建材行业SRM供应商云协同管理平台解决方案,实现业务应用可扩展可配置
As a new force, chenglian premium products was initially injected, and the shares of relevant listed companies rose 150% in response
List. How to achieve ascending and descending sort() 2020.8.6
随机推荐
MySQL Index Optimization Practice I
Summary of common methods of object class (September 14, 2020)
C simple question one
FPGA basics catalog
SAP memory parameter tuning process
v-for遍历对象
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
8.31 Tencent interview
SAP HR social work experience 0023
伸展树(一) - 图文解析与C语言实现
SAP HR 家庭成员信息
Ora-01741 and ora-01704
Oracle string sorting
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code
System design overview
B_QuRT_User_Guide(36)
USB (XIV) 2022-04-12
【7.5】15. Sum of three numbers
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
Understand TCP's three handshakes and four waves with love