String url = "http://192.168.6.166:8089/fdcps_mobileReceipt/unSubscribe/createReceipt";
Client client = ClientBuilder.newClient();
Response httpResponse = client
.target(url)
.request(MediaType.APPLICATION_JSON)
.post(Entity.entity(params, MediaType.APPLICATION_JSON)); //params参数
String result = httpResponse.readEntity(String.class);
return result;
Client的POST
猜你喜欢
转载自blog.csdn.net/weixin_42699486/article/details/102495038
今日推荐
周排行