From 6969e6e8ace9a541e17bee3172658c9c0cbe9f91 Mon Sep 17 00:00:00 2001 From: Qin Dong Ming <2720806930@qq.com> Date: Sun, 8 Sep 2024 14:43:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=B9=E5=99=A8=E9=83=A8?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/muyu/javacomplier/OSSFileDownload.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud-etl-server/src/main/java/com/muyu/javacomplier/OSSFileDownload.java b/cloud-etl-server/src/main/java/com/muyu/javacomplier/OSSFileDownload.java index 49c092c..d11f7e0 100644 --- a/cloud-etl-server/src/main/java/com/muyu/javacomplier/OSSFileDownload.java +++ b/cloud-etl-server/src/main/java/com/muyu/javacomplier/OSSFileDownload.java @@ -19,8 +19,6 @@ public class OSSFileDownload { // OSS文件路径 private static final String filePath = "build/rule/version/"; - private static final String fileName = "engine"; - public static Result streamingDownload(String fileName) { String source = null; @@ -41,7 +39,9 @@ public class OSSFileDownload { // 本地文件下载路径 String localPath = "/home/" + objectName; ObjectMetadata object = ossClient.getObject(new GetObjectRequest(bucketName, filePath + objectName), new File(localPath)); - System.out.println(object); + System.out.println("文件路径是:"+filePath); + System.out.println("新文件路径是:"+localPath); + System.out.println("文件名称为:"+object); ossClient.shutdown(); return Result.success(source); }