Netflix Feign - Propagate Status and Exception through Microservices

后端 未结 6 791
予麋鹿
予麋鹿 2021-02-05 05:04

I\'m using Netflix Feign to call to one operation of a Microservice A to other other operation of a Microservice B which validates a code using Spring Boot.

The operation

6条回答
  •  生来不讨喜
    2021-02-05 05:23

    Shameless plug for a little library I did that uses reflection to dynamically rethrow checked exceptions (and unchecked if they are on the Feign interface) based on an error code returned in the body of the response.

    More information on the readme : https://github.com/coveo/feign-error-decoder

提交回复
热议问题