https://zzangjava.tistory.com/m/1026


- webClient
docs.spring.io/spring-framework/docs/current/reference/html/web-reactive.html#webflux-client-builder-reactor-timeout

https://medium.com/@odysseymoon/spring-webclient-%EC%82%AC%EC%9A%A9%EB%B2%95-5f92d295edc0

 

Medium

 

medium.com


https://www.baeldung.com/spring-5-webclient

 

Spring 5 WebClient | Baeldung

Discover Spring 5's WebClient - a new reactive RestTemplate alternative.

www.baeldung.com


- webClient URI path variable 사용
https://www.baeldung.com/webflux-webclient-parameters

 

WebClient Requests with Parameters | Baeldung

Learn how to reactively consume REST API endpoints with WebClient from Spring Webflux.

www.baeldung.com


https://stackoverflow.com/questions/62402622/how-to-pass-path-variable-by-names-in-web-client-in-spring-boot

 

How to pass path variable by names in web client in Spring boot?

I want to pass path variable using name in web client. I could pass query param by key value pair but how to pass path variable. For query param, we can do like this by passing key value pair this.

stackoverflow.com

String url = "http://localhost:8000/{id}/{name}/{id}/{name}?param1={id}&param2={cost}";

Map<String, String> params = new HashMap<>();
params.put("id", "123");
params.put("name","Prabhu");
params.put("cost","35.26");

WebClient.create().method(HttpMethod.GET) .uri(url, params).retrieve();
=> http://localhost:8000/123/Prabhu/123/Prabhu?param1=123&param2=35.26

====================================================================================================

- restTemplate will be deprecated
https://www.baeldung.com/rest-template

 

A Guide to the RestTemplate | Baeldung

Learn how to use the Spring RestTemplate to consume an API using all the main HTTP Verbs.

www.baeldung.com


- RestTemplate Post Request with JSON
www.baeldung.com/spring-resttemplate-post-json

 

RestTemplate Post Request with JSON | Baeldung

Learn how to use Spring's RestTemplate to send requests with JSON content.

www.baeldung.com


- resttemplate URI path variable 사용
https://www.baeldung.com/spring-uricomponentsbuilder

 

Guide to UriComponentsBuilder in Spring | Baeldung

A quick and practical guide to using UriComponentsBuilder in Spring

www.baeldung.com


https://spring.io/blog/2009/03/27/rest-in-spring-3-resttemplate

 

REST in Spring 3: RestTemplate

<p>In an earlier <a href="http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/">post</a>, I blogged about the REST capabilities we added to Spring @MVC version 3.0. Later, Alef <a href="http://blog.springsource.com/2009/03/16/adding-an-atom-view-t

spring.io


https://stackoverflow.com/questions/35998790/resttemplate-how-to-send-url-and-query-parameters-together

 

RestTemplate: How to send URL and query parameters together

I am trying to pass path param and query params in a URL but I am getting a weird error. below is the code String url = "http://test.com/Services/rest/{id}/Identifier" Map<String, Strin...

stackoverflow.com

 

'spring-webflux' 카테고리의 다른 글

Apache HttpClient Configuration for WebClient  (1) 2023.11.23
Mockito 로 WebClient 테스트 하기  (0) 2022.06.01
WebClient  (0) 2021.05.31
WebClient vs RestTemplate - 두번째  (0) 2021.04.12
Posted by 張's blog
,