过程阶跃响应我打电话一些REST API和处理JSON响应,读正式播放文档,我试试这个:播放2.5:从API
CompletionStage<JsonNode> token = ws.url("http://url.com")
.get()
.thenApply(response -> response.asJson());
但是,当我打印使用System.out.println(token)
令牌,
我收到了此消息[email protected][Not completed]
而不是JSON。
我仍然试图理解未来和承诺的概念,有什么我错过了吗?
在此先感谢
谢谢!对于答案和参考,该维基百科文章确实给出了答案。 – Adakbar