From f8bfcd4e526c225becdb9f624675b38bffaa9744 Mon Sep 17 00:00:00 2001 From: wangbing <1919101440@qq.com> Date: Sat, 14 Dec 2019 17:15:24 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 89108ad28ae95e9cf6b5b5ac4b46bf3fa2f97072 --- src/main/resources/modules/Java_api/ApiTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/modules/Java_api/ApiTest.java b/src/main/resources/modules/Java_api/ApiTest.java index 9b3e60f6..f102fec0 100644 --- a/src/main/resources/modules/Java_api/ApiTest.java +++ b/src/main/resources/modules/Java_api/ApiTest.java @@ -39,16 +39,16 @@ public class ${className} { //设置发送网络请求前的统一操作 client.setBefore(new ApiClient.Before() { public void call(ApiRequest request) { - System.out.println("before-->" + MapperUtil.toJson(request)); - System.out.println("before-->" + request.path()); + System.out.println("before-->request=" + MapperUtil.toJson(request)); + System.out.println("before-->path=" + request.path()); } }); //设置网络请求完成后的统一操作 client.setAfter(new ApiClient.After() { public void call(ApiRequest request, ApiResponse response) { - System.out.println("after-->" + MapperUtil.toJson(response)); + System.out.println("after-->response=" + MapperUtil.toJson(response)); Date end = new Date(); - System.out.println(simpleDateFormat.format(end)); + System.out.println("after-->time=" + simpleDateFormat.format(end)); } });