【发布时间】:2020-05-22 18:11:18
【问题描述】:
所以我有以下代码可以对远程机器执行 GET:
webClient.get()
.uri(myUri)
.accept(MediaType.APPLICATION_JSON)
.retrieve()
.bodyToMono(String.class)
.subscribe(text -> {
LOG.info(text);
});
我得到这个异常,没问题,我期待它,但很难找到任何文档如何处理这些错误:
reactor.core.Exceptions$ErrorCallbackNotImplemented: java.net.UnknownHostException
【问题讨论】: