From f7733dc8aaca5590f7194ff4bd491e80d8c92ab3 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期三, 03 一月 2024 16:42:19 +0800 Subject: [PATCH] 解压rar --- src/main/java/com/whyc/controller/ZipAndRarController.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/whyc/controller/ZipAndRarController.java b/src/main/java/com/whyc/controller/ZipAndRarController.java index dd855b8..efbd5b0 100644 --- a/src/main/java/com/whyc/controller/ZipAndRarController.java +++ b/src/main/java/com/whyc/controller/ZipAndRarController.java @@ -1,6 +1,5 @@ package com.whyc.controller; -import com.github.junrar.exception.RarException; import com.whyc.dto.Response; import com.whyc.service.ZipAndRarService; import io.swagger.annotations.Api; @@ -29,7 +28,7 @@ @ApiOperation("瑙e帇") @GetMapping("decompress") - public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, RarException { + public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, InterruptedException { return service.decompress(compressedFileUrl); } -- Gitblit v1.9.1