当前位置:网站首页>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 .
边栏推荐
- SAP HR 劳动合同信息 0016
- 平衡二叉树【AVL树】——插入、删除
- Access database query all tables SQL
- POJ2392 SpaceElevator [DP]
- Navicat connects Oracle
- C cat and dog
- SAP HR 社会工作经历 0023
- Unity3d learning notes 4 - create mesh advanced interface
- UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
- Extended tree (I) - graphic analysis and C language implementation
猜你喜欢
S2b2b mall solution of intelligent supply chain in packaging industry: opening up a new ecosystem of e-commerce consumption
The file format and extension of XLS do not match
Map operation execution process
C method question 1
Design and implementation of spark offline development framework
SAP HR奖罚信息导出
Lm12 rolling heikin Ashi double K-line filter
Open source hardware small project: anxinco esp-c3f control ws2812
USB (XV) 2022-04-14
2022 certified surveyors are still at a loss when preparing for the exam? Teach you how to take the exam hand in hand?
随机推荐
【7.4】25. Turn over the linked list in groups of K
Anxinco esp32-a1s development board is adapted to Baidu dueros routine to realize online voice function
Idea automatically generates serialVersionUID
C cat and dog
伸展树(一) - 图文解析与C语言实现
Extended tree (I) - graphic analysis and C language implementation
MySQL Index Optimization Practice II
UE4_ Ue5 combined with Logitech handle (F710) use record
USB (XVII) 2022-04-15
Live server usage
ESP at installation esp8266 and esp32 versions
B_QuRT_User_Guide(39)
PCB wiring rules of PCI Express interface
LM12丨Rolling Heikin Ashi二重K线滤波器
Ora-02437 failed to verify the primary key violation
Possible SQL for Oracle table lookup information
ASP. Net open web page
Oracle database backup and recovery
2022 届的应届生都找到工作了吗?做自媒体可以吗?
Navicat connects Oracle