📜  spring 响应式 Web 客户端抛出异常测试 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:06.277000             🧑  作者: Mango

代码示例1
Mono result = webClient.post()
            .header(HttpHeaders.CONTENT_TYPE, "application/json")
            .body(BodyInserters.fromObject(request))
            .retrieve()
            .subscribe(response -> log.info(response),
                       throwable -> throw new CustomException(throwable.getMessage()));