String json = new GsonBuilder().serializeNulls().create().toJson(obj)
String result = HttpClientUtil.executePostUrlQuietly("URL", argList,
new StringEntity(json, ContentType.APPLICATION_JSON) )
<dependency><groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.5</version>
</dependency>
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)