The difference between onErrorResume and doOnError
问题 In spring project reactor, what are the differences between onErrorResume and doOnError ? and when I should each of them ? 回答1: onErrorResume : Gives a fallback stream when some exception occurs happens in the upstream. doOnError : Side-effect operator. Suppose you want to log what error happens in the upstream. Example: Mono.just(request) .flatMap(this::makeHTTPGet) .doOnError(err -> { log.error("Some error occurred while making the POST call",err) }) .onErrorResume(err -> Mono.just