Calling REST from Java with Spring WebClient

preview_player
Показать описание
In this video, Marcus Hellberg shows you how to call a REST endpoint in Java using the Spring RestClient library, how to create Java objects from the response, and how to show the result in a data grid.

0:00 - Intro
0:18 - Creating a project with Spring Initializr
1:07 - Opening the project in IntelliJ
1:35 - REST endpoint overview
2:00 - Creating Java objects for the REST response
3:43 - Creating a service and initializing WebClient
4:59 - Calling a REST endpoint with WebClient
6:06 - Displaying data in a data grid
9:06 - Outro

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

I'm in Love with Vaadin ❤ nothing is easier than coding front end & back end in such a beautiful Java🎉

muslehhaj
Автор

Thank you Marcus for this great one. I'm just getting started with vaadin, and would like to see more pragmatic content like this one.
I hope you're planning to do more videos on hilla which is just amazing

arnaudpoutieu
Автор

Thanks, there’s not too many videos in this

DalisYn
Автор

very helpful and easy to understand, thanks

ivandjoh
Автор

Cool!! Thank you Marcus. The tutorial is what I need right now.

rickqin
Автор

thank you Marcus, very good and instructive video. Please can you add some video showing how to implement an API call with security and credentials?

braulioarencibia
Автор

Please make a similar video but with post request and take data from input fields. Thank you.

akid
Автор

Thanks for your video but i got a problem. When i call endpoint exceptions "are blocking, which is not supported in thread reactor-http-nio-" is showed. This is becouse i cant block other thread than main.
How can i solve this?

yoyoyoyoyoyoyoyoyoyoyoy
Автор

Can you link the resources you used to study this? Also how does the client know how to exactly match the api headers you’re calling. Like.
“Name matches the name response” ?

DalisYn
Автор

HI!
I am facing problem when using vaadin. Frontend compilation keep failing with error message --openssl-legacy-provider is not allowed in NODE_OPTIONS
Tried to unset it but nothing working
Any suggestion for it
Thanks in advance

kirasign
Автор

I saw similar examples with RestTemplate. Is there any difference? I have to get data from an external API.

Gorky