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
https://www.baeldung.com/spring-5-webclient
- webClient URI path variable 사용
https://www.baeldung.com/webflux-webclient-parameters
String url = "http://localhost:8000/{id}/{name}/{id}/{name}?param1={id}¶m2={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¶m2=35.26
====================================================================================================
- restTemplate will be deprecated
https://www.baeldung.com/rest-template
- RestTemplate Post Request with JSON
www.baeldung.com/spring-resttemplate-post-json
- resttemplate URI path variable 사용
https://www.baeldung.com/spring-uricomponentsbuilder
https://spring.io/blog/2009/03/27/rest-in-spring-3-resttemplate
'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 |