【发布时间】:2016-05-20 17:17:00
【问题描述】:
我想知道如何提取List<String> 作为来自jersey-2.0 客户端的响应。
我已经试过了,
List<String> list = client
.target(url)
.request(MediaType.APPLICATION_JSON)
.get(new GenericType<List<String>>(){});
但是,上面的代码不起作用。它没有返回预期的List<String>,而是返回null 值。
【问题讨论】:
标签: java json jersey-2.0 jersey-client