摘要:
jersey客户端返回List的两种方式:前提是服务端的rest实现需要返回list对象1) Using array: Client c = ... Token[] ts = c.resource(...).path(...).get(Token[].class);2) Using the the class com.sun.jersey.api.client.GenericType to ensure that generic type information is retained: List<Token>[] ts = c.resource(...).path(...).ge 阅读全文