我是反应组件的新手。我使用 webclient 进行了 api 调用,响应被包装在 Mono 组件中。有没有办法检查分配给接收到的 Mono 组件中的对象类的值。
收到的响应包装在 Mono<Abc.class> 中。
class Abc {
private message;
private email;
private status;
}
我想获取消息、电子邮件、状态中的值。
我尝试使用 .block() 但收到的错误 block()/blockfirst()/blocklast() 是阻塞的,线程 reactor-http-nio-4 不支持。
先感谢您。