同步代码
This commit is contained in:
parent
355c61e32a
commit
94062b19ff
|
@ -32,6 +32,7 @@ public class PostRequest {
|
||||||
response = client.execute(post);
|
response = client.execute(post);
|
||||||
responseEntity = response.getEntity();
|
responseEntity = response.getEntity();
|
||||||
responseBody = EntityUtils.toString(responseEntity, "UTF-8");
|
responseBody = EntityUtils.toString(responseEntity, "UTF-8");
|
||||||
|
log.info(responseBody);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
@ -51,6 +52,7 @@ public class PostRequest {
|
||||||
response = client.execute(post);
|
response = client.execute(post);
|
||||||
responseEntity = response.getEntity();
|
responseEntity = response.getEntity();
|
||||||
responseBody = EntityUtils.toString(responseEntity, "UTF-8");
|
responseBody = EntityUtils.toString(responseEntity, "UTF-8");
|
||||||
|
log.info(responseBody);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
@ -65,6 +67,7 @@ public class PostRequest {
|
||||||
response = client.execute(post);
|
response = client.execute(post);
|
||||||
responseEntity = response.getEntity();
|
responseEntity = response.getEntity();
|
||||||
responseBody = EntityUtils.toString(responseEntity, "UTF-8");
|
responseBody = EntityUtils.toString(responseEntity, "UTF-8");
|
||||||
|
log.info(responseBody);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue