同步代码

This commit is contained in:
lulz1 2024-02-27 16:25:40 +08:00
parent 355c61e32a
commit 94062b19ff
1 changed files with 3 additions and 0 deletions

View File

@ -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);
} }