diff --git a/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java b/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java index 8d2d9708..3af6de15 100644 --- a/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java +++ b/hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java @@ -120,10 +120,12 @@ public class HttpsUtils { if (entity != null) { InputStream instream = entity.getContent(); result = IOUtils.toString(instream, "UTF-8"); + instream.close(); } return JSON.parseObject(result); } catch (Exception e) { log.error(e.getMessage(),e); + } finally { } return null; }