Spring Boot Rest Client - How to change the underlying HTTP Client

  Рет қаралды 8,330

Dan Vega

Dan Vega

Күн бұрын

Пікірлер: 35
@comicalInsan
@comicalInsan 8 ай бұрын
please create chapters in your videos. It helps a lot.
@assaduzzaman_dsi
@assaduzzaman_dsi 8 ай бұрын
Nice. Hope to see jwt token propagation.
@jalsa09life
@jalsa09life 8 ай бұрын
Second that! Would love to see a sample of a front end webapp with JWT for user auth instead of spring session
@abdulfatorma348
@abdulfatorma348 8 ай бұрын
Thank you for your tutorial, you are such a great person may God continue to bless you. Please sir make a tutorial on Java Back End with all the topics that will makes someone to become Java back end developer. Thank you
@SandipChitale
@SandipChitale 8 ай бұрын
Nice video Could you do videos on the following topics: - How to implement per-request connection and read timeout? - How to implement complete request and response streaming (success and failure 4xx and 5xx HTTP STatus) with ability to manipulate request and response headers? The body of request and response is to be completely streamed.
@DanVega
@DanVega 8 ай бұрын
As far as I know there is no way to do that on a per request basis. Why would you want to do that?
@foo3234
@foo3234 8 ай бұрын
@@DanVega Dan.... 99% of comments are from bot accounts, its not a real request.
@sarkar_957
@sarkar_957 8 ай бұрын
@@foo3234 broo 😂😂 really?
@Muescha
@Muescha 8 ай бұрын
​ @foo3234 especial that ones with user names with some chars at the start and many numbers on the end are 99% bot accounts
@eugeniabuch5282
@eugeniabuch5282 21 күн бұрын
how do i configure connection pooling with the restclient?
@luisr8663
@luisr8663 8 ай бұрын
Which has better performane: Rest Client or Feign Client?
@Nico-ly7lh
@Nico-ly7lh 2 ай бұрын
which color theme are you using? Haveing issues reading white on dark, but your template feels like wellness to my eyes
@aliksargsyan2782
@aliksargsyan2782 8 ай бұрын
Is RestClient succesor of WebClient ?
@DanVega
@DanVega 8 ай бұрын
No. In a Spring MVC blocking application you would usually reach for the RestTemplate unless you brought in Spring Webflux just for the WebClient. The Rest Client gives you a fluent imperative API similar to the Web Client.
@aliksargsyan2782
@aliksargsyan2782 8 ай бұрын
@@DanVega aah ok 👌 thank you dear Dan.
@siddharthshankarpaul
@siddharthshankarpaul 8 ай бұрын
Hope OkHttp 5 gets added.
@sarkar_957
@sarkar_957 8 ай бұрын
Hey dan how do you move on with new feature added in each new version of spring boot. I mean after looking at new release changes you go and understand them/learn them ?
@Techlovers-daveInTheCloud
@Techlovers-daveInTheCloud 7 ай бұрын
By any chance, do you have an example of spring-boot project native image using web client (looking for the hint registration) ?
@Muescha
@Muescha 8 ай бұрын
can you show the LiveTemplate for the RestClient? (or a link to a gist)
@Muescha
@Muescha 8 ай бұрын
Found the answer in the README in your repo rest-client-examples
@chrispure7461
@chrispure7461 8 ай бұрын
How about Oauth2 support?
@DanVega
@DanVega 8 ай бұрын
There is nothing built-in but its something we are looking into. Right now you could send a token via a header
@chrispure7461
@chrispure7461 8 ай бұрын
@@DanVega ok. Don't we have to fetch token for ever call then? wish we had refresh token capability butiltin.
@francescospampinato3458
@francescospampinato3458 8 ай бұрын
What can be used to mock responses for RestClient in my integration tests?
@DanVega
@DanVega 8 ай бұрын
You can use RestClientTest. I have an example here and I'm working on a video for that github.com/danvega/rest-client-examples/blob/main/src/test/java/dev/danvega/rc/client/PostServiceTest.java
@gallardofabian
@gallardofabian 8 ай бұрын
Thanks for share. Maybe add an example with token, passport how inject With interceptors, etc.
@danilagrishin4201
@danilagrishin4201 8 ай бұрын
In which cases should we use RestTemplate or WebClient or Feign? Thanks!
@DanVega
@DanVega 8 ай бұрын
If you are in a Spring MVC app use RestClient if you're in a Webflux app use WebClient.
@Anbu_Sampath
@Anbu_Sampath 8 ай бұрын
how about Spring HTTP Interface Clients?
@MagnusLundvall
@MagnusLundvall 8 ай бұрын
How can we create an insecure RestClient that don't verify SSL/TLS?
@asfakmhmd
@asfakmhmd 6 ай бұрын
How to add ssl or client side certificates
Spring Boot Rest Client Interceptors
14:00
Dan Vega
Рет қаралды 10 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 63 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 2,9 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
🚀 New in Spring Framework 6.1: RestClient
13:16
Maciej Walkowiak 🍃 Spring Academy
Рет қаралды 10 М.
How to call a Java REST API using JDK Http Client
22:23
Dan Vega
Рет қаралды 8 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 159 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 63 МЛН