Przeglądaj źródła

无法导入大量数据excel

hankunkun 10 miesięcy temu
rodzic
commit
76f4f1562a

+ 3 - 0
src/main/java/ieven/server/webapp/api/FileController.java

@@ -84,8 +84,11 @@ public class FileController {
                     return Mapped.ERROR(errorHeaders.toString());
                 }
             }
+            reader.close();
         }
         String encoding = EncodeDetector.getEncoding(baos.toByteArray());
+        baos.close();
+
         return this.fileService.storeUploaded(
                 new ByteArrayInputStream(baos.toByteArray()), encoding, filename, contentType, modelId);
     }