Spring Boot Rest Client Testing with @RestClientTest Issue & Work-around

Ғылым және технология

In this tutorial you will learn how to test your Rest Client calls using the Rest Client Test annotation (@RestClientTest) in Spring Boot. If you need to change out the underlying HTTP Client library to the JDK Http Client you might have run into an issue and we will talk about it and a work-around.
🔗Resources & Links mentioned in this video:
RestClientTest Tutorial: • Spring Boot Rest Clien...
GitHub Issue: github.com/spring-projects/sp...
GitHub Repo: github.com/danvega/rest-clien...
👋🏻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 ❤️

Пікірлер: 4

  • @INFO_HISTORY5
    @INFO_HISTORY518 күн бұрын

    Hi you're doing good job , keep rocking with java programming , i support you , you're new subscriber ❤

  • @Jvnyor
    @Jvnyor20 күн бұрын

    Could you provide a video covering asynchronous requests using WebClient or another library that can offer this? And if possible, how to do unit tests as well, as that would be very helpful!

  • @abisheky6185
    @abisheky618523 күн бұрын

    Hey Dan, I use resttemplate and wanted to move to springboot 3 and confused to use webclient or the restclient. I call sync apis and wanted to understand whether to directly learn restclient or first go through webclient as it was a successor of resttemplate(after it got deprecated)

  • @Jvnyor

    @Jvnyor

    20 күн бұрын

    I think if you just want to communicate synchronously, you can go straight to RestClient. WebClient is part of Spring WebFlux, and its purpose is to handle asynchronous communications. So, in my view, you only need to go this route if you need it.

Келесі