Feign Client Implementation From Course Service To User Service

Vue JS and Spring Boot Microservices and Spring Cloud Course Service - (Second Main Microservice)
4 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€59.47
List Price:  €84.96
You save:  €25.49
£51.07
List Price:  £72.96
You save:  £21.89
CA$95.50
List Price:  CA$136.44
You save:  CA$40.93
A$106.61
List Price:  A$152.31
You save:  A$45.69
S$89.14
List Price:  S$127.35
You save:  S$38.20
HK$549.41
List Price:  HK$784.90
You save:  HK$235.49
CHF 55.46
List Price:  CHF 79.24
You save:  CHF 23.77
NOK kr706.25
List Price:  NOK kr1,008.97
You save:  NOK kr302.72
DKK kr443.76
List Price:  DKK kr633.97
You save:  DKK kr190.21
NZ$115.25
List Price:  NZ$164.65
You save:  NZ$49.40
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.18
৳8,592.30
List Price:  ৳12,275.24
You save:  ৳3,682.94
₹5,996.07
List Price:  ₹8,566.19
You save:  ₹2,570.11
RM295.98
List Price:  RM422.85
You save:  RM126.87
₦107,400.35
List Price:  ₦153,435.65
You save:  ₦46,035.30
₨19,865.58
List Price:  ₨28,380.62
You save:  ₨8,515.03
฿2,269.28
List Price:  ฿3,241.97
You save:  ฿972.69
₺2,785.36
List Price:  ₺3,979.26
You save:  ₺1,193.89
B$383.70
List Price:  B$548.17
You save:  B$164.46
R1,236.14
List Price:  R1,765.99
You save:  R529.85
Лв116.28
List Price:  Лв166.12
You save:  Лв49.84
₩95,123.65
List Price:  ₩135,896.76
You save:  ₩40,773.10
₪235.96
List Price:  ₪337.10
You save:  ₪101.14
₱3,945.68
List Price:  ₱5,636.93
You save:  ₱1,691.25
¥10,073.16
List Price:  ¥14,390.85
You save:  ¥4,317.68
MX$1,311.18
List Price:  MX$1,873.20
You save:  MX$562.01
QR254.55
List Price:  QR363.67
You save:  QR109.11
P926.07
List Price:  P1,323.02
You save:  P396.94
KSh9,042.70
List Price:  KSh12,918.70
You save:  KSh3,876
E£3,451.07
List Price:  E£4,930.31
You save:  E£1,479.24
ብር9,646.67
List Price:  ብር13,781.55
You save:  ብር4,134.87
Kz64,063.13
List Price:  Kz91,522.68
You save:  Kz27,459.54
CLP$64,994.81
List Price:  CLP$92,853.71
You save:  CLP$27,858.90
CN¥501.73
List Price:  CN¥716.79
You save:  CN¥215.06
RD$4,162.75
List Price:  RD$5,947.04
You save:  RD$1,784.29
DA9,083.67
List Price:  DA12,977.24
You save:  DA3,893.56
FJ$156.51
List Price:  FJ$223.59
You save:  FJ$67.08
Q538.38
List Price:  Q769.15
You save:  Q230.77
GY$14,641.76
List Price:  GY$20,917.70
You save:  GY$6,275.93
ISK kr8,505.18
List Price:  ISK kr12,150.78
You save:  ISK kr3,645.60
DH628.35
List Price:  DH897.69
You save:  DH269.33
L1,176.21
List Price:  L1,680.37
You save:  L504.16
ден3,657.03
List Price:  ден5,224.55
You save:  ден1,567.52
MOP$566.09
List Price:  MOP$808.74
You save:  MOP$242.64
N$1,230.84
List Price:  N$1,758.42
You save:  N$527.58
C$2,576.60
List Price:  C$3,681.01
You save:  C$1,104.41
रु9,575.09
List Price:  रु13,679.29
You save:  रु4,104.20
S/248.01
List Price:  S/354.32
You save:  S/106.30
K288.71
List Price:  K412.47
You save:  K123.75
SAR262.47
List Price:  SAR374.98
You save:  SAR112.50
ZK1,671.49
List Price:  ZK2,387.95
You save:  ZK716.45
L301.31
List Price:  L430.46
You save:  L129.15
Kč1,465.59
List Price:  Kč2,093.79
You save:  Kč628.20
Ft23,716.81
List Price:  Ft33,882.61
You save:  Ft10,165.80
SEK kr665.98
List Price:  SEK kr951.44
You save:  SEK kr285.46
ARS$84,407.94
List Price:  ARS$120,587.94
You save:  ARS$36,180
Bs483.79
List Price:  Bs691.16
You save:  Bs207.36
COP$288,055.42
List Price:  COP$411,525.38
You save:  COP$123,469.96
₡35,338.63
List Price:  ₡50,485.92
You save:  ₡15,147.29
L1,829.64
List Price:  L2,613.88
You save:  L784.24
₲558,465.98
List Price:  ₲797,842.75
You save:  ₲239,376.76
$U2,797.14
List Price:  $U3,996.09
You save:  $U1,198.94
zł252.90
List Price:  zł361.30
You save:  zł108.40
Already have an account? Log In

Transcript

Hi guys in this lesson, we will create connection to other services from cursors. We can connect to other services in Spring Cloud easily with using Spring Cloud open tea. For example, we want to get user names with IDs from users. To do it, first of all, we will create them. Then we will create that user client interface under intercom package. Later, we will add a thin client annotation with user service to connect user service And we will send POST requests to user service to get user names according to our user ID list with service names path Later we can call it from seaplane controller class.

To do it. First of all we will create controller package under our main package. Then we will create cruise controllers on the controller package Course controllers will be rest controllers. In our case, we have user client so we can inject it with sibling auto wired interface. Then we can use it in our controller class like normal instance. To enable thin client in spring configuration, we should add annotation to our main class like enable thin clients.

Okay, that's all about thin client. Thank you.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.