Getting Started with the Web Client in Spring Boot & Writing Tests

Getting Started with the Web Client in Spring Boot & Writing Tests

Dan Vega

4 месяца назад

6,108 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AdrianVrabie
@AdrianVrabie - 01.08.2024 00:06

nice :) although I don't really see much value in unit testing the web client... it's good to have unit/code coverage :D

Ответить
@SandipChitale
@SandipChitale - 01.08.2024 00:38

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.

Ответить
@Jvnyor
@Jvnyor - 01.08.2024 02:59

Thank you very much for the video! It helped me a lot, and I am sure it will help many others!

Ответить
@gsilveralan
@gsilveralan - 02.08.2024 03:37

Can we do this with Virtual Threads?

Ответить
@frantisekcerven8554
@frantisekcerven8554 - 02.08.2024 15:09

Hi Dan, could you please explain how to do Oauht2 + new RestClient? Thank you very much.

Ответить
@zackfei
@zackfei - 03.08.2024 12:29

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

Ответить
@hayrullahyasar
@hayrullahyasar - 06.08.2024 06:33

Thank you for sharing

Ответить
@rbcm1
@rbcm1 - 14.08.2024 17:11

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

Ответить
@marekj3759
@marekj3759 - 21.10.2024 11:25

what's the theme for IntelliJ? 🙂

Ответить