Commit fa82f9c0 authored by wanghang's avatar wanghang

1

parent eb9c5f53
...@@ -62,6 +62,8 @@ public class DefaultHttpClient extends BaseApplication implements HttpClient { ...@@ -62,6 +62,8 @@ public class DefaultHttpClient extends BaseApplication implements HttpClient {
post.addHeader("Authorization", "Basic " + Base64.getEncoder().encodeToString(usernameAndPassword.getBytes())); post.addHeader("Authorization", "Basic " + Base64.getEncoder().encodeToString(usernameAndPassword.getBytes()));
//post.addHeader("token",SystemCache.getParameter("material.token",String.class)); //post.addHeader("token",SystemCache.getParameter("material.token",String.class));
// String requestText = messageSerializer.serialize(param); // String requestText = messageSerializer.serialize(param);
String requestText = new ObjectMapper().writeValueAsString(param); String requestText = new ObjectMapper().writeValueAsString(param);
LOG.info("requestText={}", requestText); LOG.info("requestText={}", requestText);
post.setEntity(new StringEntity(requestText, ContentType.APPLICATION_JSON)); post.setEntity(new StringEntity(requestText, ContentType.APPLICATION_JSON));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment