A关联B, 当B流控后,A 的流控规则也生效了
package com.learning.springcloud.order.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/guanlian")
public class GuanLianController {
@RequestMapping("/A")
public Object A() {
return "hi, A;";
}
@RequestMapping("/B")
public Object B() {
return "hi, B;";
}
}
效果
关联模式:A关联B, 当B流控后,A 的流控规则也生效了