阅读背景:

新泽西州。如何根据url param生成json和xml输出

来源:互联网 

Here is a Jersey service:

这是泽西岛服务:

@GET
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response service(@QueryParam("format") String format) {

  if (format.equals("json")) {...}

  return response;

}
@GET
@Pr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: