File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
java/com/cevher/ms/cloud/gateway Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,8 @@ public String userServiceFallBack(){
15
15
public String departmentServiceFallBack (){
16
16
return "FallBack Controller!.. Department Service is taking longer then Expected." ;
17
17
}
18
+ @ GetMapping ("/taskServiceFallBack" )
19
+ public String taskServiceFallBack (){
20
+ return "FallBack Controller!.. Task Service is taking longer then Expected." ;
21
+ }
18
22
}
Original file line number Diff line number Diff line change @@ -26,7 +26,15 @@ spring:
26
26
args :
27
27
name : department-service
28
28
fallbackuri : forward:/departmentServiceFallBack
29
-
29
+ - id : task-service
30
+ uri : lb://task-service
31
+ predicates :
32
+ - Path=/tasks/**
33
+ filters :
34
+ - name : CircuitBreaker
35
+ args :
36
+ name : task-service
37
+ fallbackuri : forward:/taskServiceFallBack
30
38
hystrix :
31
39
command :
32
40
fallbackcmd :
You can’t perform that action at this time.
0 commit comments