当前位置:网站首页>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 .
边栏推荐
- B_ QuRT_ User_ Guide(40)
- B_QuRT_User_Guide(38)
- Progress broadcast | all 29 shield machines of Guangzhou Metro Line 7 have been launched
- [untitled]
- FPGA basics catalog
- Summary of common methods of object class (September 14, 2020)
- Open source hardware small project: anxinco esp-c3f control ws2812
- 移动端异构运算技术 - GPU OpenCL 编程(基础篇)
- B_ QuRT_ User_ Guide(38)
- 0-1背包问题
猜你喜欢
SAP 内存参数调优过程
UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
B_ QuRT_ User_ Guide(36)
B_QuRT_User_Guide(38)
Live server usage
建筑建材行业SRM供应商云协同管理平台解决方案,实现业务应用可扩展可配置
C simple question one
Given an array, such as [7864, 284, 347, 7732, 8498], now you need to splice the numbers in the array to return the "largest possible number."
[compilation principle] lexical analysis design and Implementation
C number of words, plus ¥, longest word, average value
随机推荐
S2b2b mall solution of intelligent supply chain in packaging industry: opening up a new ecosystem of e-commerce consumption
UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
MySQL架构
C inheritance and interface design polymorphism
C simple question one
Boost regex library source code compilation
Explain
【7.5】15. 三数之和
伸展树(一) - 图文解析与C语言实现
B_QuRT_User_Guide(40)
Interface
Live server usage
Flash encryption process and implementation of esp32
C method question 1
Dependency injection 2 advantage lifecycle
Class C design questions
【7.4】25. K 个一组翻转链表
redis缓存工具类,值得拥有~
B_ QuRT_ User_ Guide(37)
Possible SQL for Oracle table lookup information