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

Поділитися
Вставка

КОМЕНТАРІ • 4

  • @INFO_HISTORY5
    @INFO_HISTORY5 18 днів тому

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

  • @Jvnyor
    @Jvnyor 20 днів тому

    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
    @abisheky6185 23 дні тому

    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.