WebClient

spring-webflux 2021. 5. 31. 00:16



https://zzangjava.tistory.com/1026


- message converter 설정
https://stackoverflow.com/questions/60394358/how-do-i-define-a-custom-httpmessageconverter-for-the-reactive-spring-webclient

https://stackoverflow.com/questions/43769301/how-to-customize-springwebflux-webclient-json-deserialization


- retrieve VS exchangeToMono, exchangeToFlux 차이
https://gipyeonglee.tistory.com/m/256


https://yangbongsoo.tistory.com/29

응답이 200이고 응답 body에 대한 처리만 하고 싶은 경우 retrieve.
이 외에 응답 코드가 4xx, 5xx 등 특정 코드에 따라 다른 결과를 주고 싶거나 응답 헤더를 사용하고 싶은 경우는 exchangeTo를 사용하자.
https://withhamit.tistory.com/184


- operator 설명

http://wonwoo.ml/index.php/post/category/web/spring

https://luvstudy.tistory.com/100


- 설명 및 예제

https://happycloud-lee.tistory.com/m/220

https://umbum.dev/1114


https://dreamchaser3.tistory.com/m/11


- 순차적으로 호출 후 값 합치기
https://nickolasfisher.com/blog/How-to-Make-Sequential-API-Calls-and-Merge-the-Results-In-Spring-Boot-Webflux


- response status code

https://careydevelopment.us/blog/spring-webflux-handling-webclient-errors-with-onstatus

https://www.baeldung.com/spring-webclient-get-response-body

- timeout
https://www.baeldung.com/spring-webflux-timeout

- error handling

https://medium.com/@akhil.bojedla/exception-handling-spring-webflux-b11647d8608

https://www.baeldung.com/spring-webflux-errors

https://gist.github.com/abhi2495/4607f2c827b2130ab6e08320f4ca5079

- retrieve 사용시 에러처리
https://stackoverflow.com/questions/67572340/webclient-error-handling-spring-webflux


- subscribe 이용하여 결과 처리
https://tecoble.techcourse.co.kr/post/2021-10-20-synchronous-asynchronous/






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

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