当前位置:网站首页>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 .
边栏推荐
- Extended tree (I) - graphic analysis and C language implementation
- 生鲜行业数字化采购管理系统:助力生鲜企业解决采购难题,全程线上化采购执行
- V-for traversal object
- [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
- Access database query all tables SQL
- Anxin can internally test offline voice module vb-01 to communicate with esp-c3-12f
- B / Qurt Utilisateur Guide (36)
- How can we make money by making video clips from our media?
- 2022第六季完美童模陕西总决赛圆满落幕
- Interface
猜你喜欢
随机推荐
Live server usage
SAP memory parameter tuning process
0-1 knapsack problem
What if once again forgets the login password of raspberry pie? And you don't have a monitor yet! Today, I would like to introduce a method
MATLAB signal processing [Q & A essays · 2]
Sequence of entity layer, Dao layer, service layer and controller layer
平衡二叉树【AVL树】——插入、删除
Three questions TDM
PHP uses Alibaba cloud storage
Class C design questions
Understand TCP's three handshakes and four waves with love
Boost regex library source code compilation
V-for traversal object
SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
8.31 Tencent interview
SAP HR social work experience 0023
USB (XV) 2022-04-14
2022 Season 6 perfect children's model Shaanxi finals came to a successful conclusion
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
FPGA basics catalog