Spring Cloud Open Feign Request Interceptor

preview_player
Показать описание
Implement Request Interceptor for Spring Cloud Open Feign
Рекомендации по теме
Комментарии
Автор

Thank you very much for your video!

Assume that I want to store the request and the response details of the external API call to a database table. Should I use the interceptors to do that? Maybe for auditing reasons I want to keep track of every external API calls that happen inside my application. Both successful and not successful. What do you think?

ainigma
Автор

very good! my Feign is running the requestInterceptor at the beginning of the application, I saw another way implementing RequestInterceptor and adding it to the Feign configuration that works. But in this application, is there a way to pass a token coming from the header of the application itself?

rodrigocarvalhodev