Комментарии:
nice :) although I don't really see much value in unit testing the web client... it's good to have unit/code coverage :D
ОтветитьThanks.
It would be nice to see an extension of this with streaming requests and responses for use in a gateway or proxy and uploading and downloading large files.
Thank you very much for the video! It helped me a lot, and I am sure it will help many others!
ОтветитьCan we do this with Virtual Threads?
ОтветитьHi Dan, could you please explain how to do Oauht2 + new RestClient? Thank you very much.
ОтветитьCan you do use webclient in spring web? I know that it won’t get the reactive advantages, just that want to explore the possibility to do so. Before “restclient” was introduced in spring web, there is 2 ways to do the rest call, resttemplate and webclient
ОтветитьThank you for sharing
ОтветитьProbably this does not work for a WebClient which is reactive and Flux oriented.
But for those out there using a classical / sync approach and the RestTemplate or RestClient, you can use the standard MockRestServiceServer from Spring web test. It works great and really keeps the unit tests clean
what's the theme for IntelliJ? 🙂
Ответить