public static String postJsonBody(String url, int timeout, Map<String, Object> headerMap,
			String paraData, String encoding) {

		logger.info("successfully  start post Json Body  url{} ", url);
		HttpPost post = new HttpPost(url);
		try {
			if (headerMap != null) {
				for (Entry<String, Object> entry : headerMap.entrySet()) {
					post.setHeader(entry.getKey(), entry.getValue().toString());
				}
			}
			RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(timeout).setConnectTimeout(timeout)
					.setConnectionRequestTimeout(timeout).setExpectContinueEnabled(false).build();
			StringEntity jsonEntity = new StringEntity(paraData, ContentType.APPLICATION_JSON);
			post.setConfig(requestConfig);
			post.setEntity(jsonEntity);
			CloseableHttpResponse response = httpclient.execute(post);
			try {
				HttpEntity entity = response.getEntity();
				try {
					if (entity != null) {
						String str = EntityUtils.toString(entity, encoding);
						return str;
					}
				} finally {
					if (entity != null) {
						entity.getContent().close();
					}
				}
			} finally {
				if (response != null) {
					response.close();
				}
			}
		} catch (UnsupportedEncodingException e) {
			logger.error("UnsupportedEncodingException", e);
			throw new RuntimeException("failed post json return blank!");
		} catch (Exception e) {
			logger.error("Exception", e);
			throw new RuntimeException("failed post json return blank!");
		} finally {
			post.releaseConnection();
		}
		logger.info("successfully  end post Json Body  url{} ", url);
		return "";
	}
@param url
@param timeout
@param headerMap
@param paramsList
@param encoding
@return
dss-apps/dss-data-governance/dss-data-governance-common/src/main/java/com/webank/wedatasphere/dss/data/common/utils/HttpClientUtil.java