修改容器部路径

master
Qin Dong Ming 2024-09-08 14:43:36 +08:00
parent a2ff544d1d
commit 6969e6e8ac
1 changed files with 3 additions and 3 deletions

View File

@ -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<Object> 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);
}