작동하지 나는이 FeignClient 아래에 있습니다척하기 Hystrix 대체
@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