Тёмный

Spring Boot Rest Client Interceptors 

Dan Vega
Подписаться 58 тыс.
Просмотров 9 тыс.
50% 1

In this tutorial you will learn how to create a Rest Client Interceptor in Spring Boot. This will allow to modify the outgoing request and/or the incoming response. This will allow you to add your own custom logic to your HTTP client calls.
🔗Resources & Links mentioned in this video:
GitHub Repository: github.com/danvega/rest-clien...
Rest Client Examples: github.com/danvega/rest-clien...
Rest Client Documentation: docs.spring.io/spring-framewo...
👋🏻Connect with me:
Website: www.danvega.dev
Twitter: / therealdanvega
Github: github.com/danvega
LinkedIn: / danvega
Newsletter: www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️

Наука

Опубликовано:

 

29 янв 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@thelanelim92
@thelanelim92 5 месяцев назад
Hi Dan, this is a bit more advanced, thanks… it’s nice to see this type of content in a sea of hello world examples which take you nowhere. ❤
@PranavInamdar-g2c
@PranavInamdar-g2c 26 дней назад
Thanks dan for sharing the knowledge. Really helpful!!
@varunbhardwaj2267
@varunbhardwaj2267 5 месяцев назад
Dan thanks for another wonderful insight about RestClient. Only expectation from many developers is Spring Boot can provide the necessary Infrastructure to support commonly used interceptors under the hood such as JWT token propagation, Oauth related mechanisms..etc. Webclient already has such functionality through builder pipeline. Hope this could be considered in future release for RestClient
@pad5724
@pad5724 5 месяцев назад
Rest client will be my main topic for February! Thank you Dan
@technogeek8306
@technogeek8306 5 месяцев назад
Thank you Dan for uploading the tutorial. This is very helpful. Simple use case wherein we can use this: Logging request type, url and response time which is very useful while debugging something in production. For me, something more to explore: Understanding how rest client interceptor behaves when we get 4xx, 5xx and timeout errors.
@calintamas7576
@calintamas7576 5 месяцев назад
Thx, Dan for this video!
@user-kl2uu7lj4b
@user-kl2uu7lj4b 5 месяцев назад
Very informative Thank you Dan
@dflachbart
@dflachbart 5 месяцев назад
Thanks Dan for your videos!! Very excited about the new Rest Client in 3.2, so appreciate your various tutorials about it... For a long time everyone was saying that the RestTemplate is going to be deprecated (which now doesn't really seem true any more right?), so we moved on to using the WebFlux WebClient in every new project. To be honest I was never really happy about it, it always kind of felt wrong to use a reactive tool and just tack on a '.block()' to use it synchronously.... 😉 But now with the Rest Client it seems we have a nice and modern alternative again that I will try to advocate for in our new projects! On a side note, do you happen to know if Spring Boot 3.2 supports automatic Observability instrumentation for the Rest Client like it does for the WebClient? We just started just using Observability in our projects and this would be great...
@maneshipocrates2264
@maneshipocrates2264 5 месяцев назад
Thanks for the video.
@Nothing_Else_Matters
@Nothing_Else_Matters 5 месяцев назад
Thank you.. it is very helpful
@matadorxp1
@matadorxp1 5 месяцев назад
Nice video!!
@EricSouzarys
@EricSouzarys 5 месяцев назад
Thanks for the video. Do you have any documentation link on how to use interceptors to deal with authencation based on tokens that need to be refreshed after expires?
@haroldpepete
@haroldpepete 5 месяцев назад
in some.videos you're a java champion and in others a spring developer, what is your secret identity?
@markkuuss
@markkuuss 5 месяцев назад
Hey Dan, do you have paid courses in plateforms like Pluralsight or Udemy?
@er.sahilmd
@er.sahilmd 5 месяцев назад
The link for github are wrong
Далее
5 Common Mistakes Spring Developers Make
18:06
Просмотров 16 тыс.
How to call a Java REST API using JDK Http Client
22:23
Top 8 Spring Properties You Should Know in 2024
18:44
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Просмотров 2 млн
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 13 тыс.