A First Look at the new Rest Client in Spring Boot 3.2

preview_player
Показать описание
This is my first look at the new Rest Client in Spring Boot 3.2. In this tutorial we will discuss what a client is, what are the different implementations of clients available and how to get started with the new Rest Client in Spring Framework 6.1 and Spring Boot 3.2

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

Рекомендации по теме
Комментарии
Автор

We need a new JdbcClient video as well!. Anyway the ParametrizedTypeReference stuff is lame a bit to write it still.

AleksandarT
Автор

Thank you! We are re-building some clients, will directly remove the resttemplate with this new restclient to be safe for upcoming Spring updates

Nico-lylh
Автор

Thank you for sharing. I like the new Rest Client.

hayrullahyasar
Автор

RestClient with Declarative Interface client is nice combo.

Anbu_Sampath
Автор

I really like the enhancements, now to hopefully get a more elegant solution for ParametrizedTypeReference in a future release.

VerhoevenSimon
Автор

never used restclient, used resttemplate before so i will try this now.

hkkabir
Автор

What are the main differences between Rest Client and the Feign client (or Spring Cloud OpenFeign) ? Are there scenario's where one is preferred over the other?

nickphilippe
Автор

With HTTP Interface in place, since you replaced PostService with it, you could remove PostService at the end 😊

traxex
Автор

Hi Dan, perfect timing on this. I wasn't able to get the default header to work, but I did get this to work:

ResponseEntity<Void> response = restClient.post()
.uri("/contacts?email={email}&first_name={first_name}&lists[]={listId}", email, firstName, listId)
.header("Authorization", "Bearer " + token)

.retrieve()
.toBodilessEntity();

nathanlively
Автор

Awesome video Dan. Love watching your live demos. As a side question: what theme is it? It's so elegant.

AmandeepSingh-hdiq
Автор

Hi Dan, Thats awesome 👍
Would you like to make a vidoe about how to setup and solve comon issue with hikari?

rioberliandinatamunas
Автор

Where did you get this spring t-shirt? It's awesome.

dandantin
Автор

Great video! Does the new rest client have a more convenient way to handle concurrent requests than the rest template? One big advantage of the web client compared to the rest template for me was that successive calls can be handled a lot quicker because they dont have to wait for another.

theone
Автор

Cool... another video without headers examples...exactly as hundreds others on YT.. 18 min of pure water... Really useful

salo.
Автор

Is there a way to disable SSL verification on the RestClient? Like the TrustAllStrategy for the SSLContext in Apache HttpClient (without having to use the HttpClient as a request factory for the RestClient)

loic.bertrand
Автор

Hey this is great, so if I wanted to do an Integrated test with @SpringBootTest, I could just use this client directly right ?

peshutanpavri
Автор

Cool, thanks! What about (1) proxies (2) SSL (self-signed, enterprise CA, ...) (3) error handling ?

hnhnknk
Автор

Very good info! How does rest client deals when the external service is unavailable or returns some error? Does rest client support circuit breaker handling?

awjamesfrj
Автор

Can you please compare with feignclient

ashishranjan
Автор

Hello Dan, Thanks for wonderfull video, Can you make one video on aws lamda for spring boot database access whether to use orm like hibernate or spring data jpa or spring JDBC which one is best suited

harshsingh