spring feign client exception handling

后端 未结 3 1699
慢半拍i
慢半拍i 2021-02-09 03:01

I have some fiegn client to send request other micro service.

@FeignClient(name=\"userservice\")
public interface UserClient {

    @RequestMapping(
                    


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-02-09 03:50

    There's a ErrorDecored interface for that like it says in the documentation

    The answer above about FallbackFactory is viable but falls into some other layer of abstraction.

提交回复
热议问题