Beware of using spring WebClient(Episode4)
Change flatMap to map and onErrorResume to onErrorMap
AS-IS
Let's see the below code. I use clientResponse.createException().flatMap() and onErrorResume. However That is inefficient code. because flatMap unwrap and wrap to Mono.error again. onError...
yangbongsoo.hashnode.dev2 min read