我有以下FeignClient:佯蝟回退不工作
@FeignClient(name="FooMS",fallback=CustomerFeign.CustomerFeignImpl.class)
public interface CustomerFeign {
@RequestMapping(value="/bar/{phoneNo}")
List<Long> getFriends(@PathVariable("phoneNo") Long phoneNo);
class CustomerFeignImpl implements CustomerFeign{
@Override
public List<Long> getFriends(Long phoneNo) {
return new ArrayList<Long>(108);
}
}
}
當FooMS實例關閉,我得到一個500錯誤,而不是回退執行。這是爲什麼發生?
你能分享你的堆棧跟蹤嗎? – jmhostalet