修改容器部路径
parent
a2ff544d1d
commit
6969e6e8ac
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue