Skip to content

Commit cf52c29

Browse files
author
jin1.xu
committed
fix isSleep
1 parent 96befbd commit cf52c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch17-3/ch17-3-service/src/main/java/cn/springcloud/book/eureka/controller/TestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public String testSetHead(HttpServletRequest request, HttpServletResponse respon
7676
}
7777

7878
@GetMapping("/test/Hystrix/")
79-
public String index(@RequestParam("sleep") boolean isSleep) throws InterruptedException {
79+
public String index(@RequestParam("isSleep") boolean isSleep) throws InterruptedException {
8080
log.info("issleep is " + isSleep);
8181
//isSleep为true开始睡眠,睡眠时间大于Gateway中的fallback设置的时间
8282
if (isSleep) {

0 commit comments

Comments
 (0)