com.predic8
diff --git a/src/main/java/com/yhjd/util/OkHttpUtils.java b/src/main/java/com/yhjd/util/OkHttpUtils.java
deleted file mode 100644
index 49b0204..0000000
--- a/src/main/java/com/yhjd/util/OkHttpUtils.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package com.yhjd.util;
-
-import com.alibaba.fastjson.JSONObject;
-import okhttp3.OkHttpClient;
-import okhttp3.Request;
-import okhttp3.Response;
-
-import java.io.IOException;
-
-public class OkHttpUtils {
-
- public static JSONObject response(OkHttpClient client, Request request){
- // 4 执行请求操作
- try {
- Response response = client.newCall(request).execute();
-
- System.out.println(response);
- if (response.isSuccessful()) {
- String string = response.body().string();
- System.out.println("返回内容"+string);
- JSONObject result = JSONObject.parseObject(string);
- return result;
- }
- return null;
- } catch (IOException e) {
- throw new RuntimeException("请求微服务失败",e);
- }
- }
-
- public static String stringResponse(OkHttpClient client, Request request){
- // 4 执行请求操作
- try {
- Response response = client.newCall(request).execute();
-
- System.out.println(response);
- if (response.isSuccessful()) {
- String string = response.body().string();
- return string;
- }
- return null;
- } catch (IOException e) {
- throw new RuntimeException("请求微服务失败",e);
- }
- }
-}
diff --git a/src/main/java/com/yhjd/util/QuietCloseUtils.java b/src/main/java/com/yhjd/util/QuietCloseUtils.java
deleted file mode 100644
index 56df56e..0000000
--- a/src/main/java/com/yhjd/util/QuietCloseUtils.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.yhjd.util;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- *
- * Title :
- *
- *
- * Description:
- *
- *
- * Author :蔡雨生
- *
- *
- * Department : 研发部
- *
- * Copyright : ©协群(上海)网络科技有限公司
- */
-public class QuietCloseUtils {
-
- private static final Logger logger = LoggerFactory.getLogger(QuietCloseUtils.class);
-
- private QuietCloseUtils() {
- }
-
- public static void close(AutoCloseable s) {
- if(s != null) {
- try {
- s.close();
- s = null;
- } catch (Exception var2) {
- logger.error("关闭失败", var2);
- }
- }
- }
-}