Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwujing committed Mar 13, 2024
1 parent 9c3b1bf commit 9d5e1b5
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,5 @@ private static FileItem createFileItem(String filePath) {
return item;
}

public static void main(String[] args) throws Exception {
CosBootUtil.setAccessKeyId("AKIDcBkIvqlofcvJHHCEMSVXdaMzTCDFwc8U");
CosBootUtil.setAccessKeySecret("IOJBtStAIoRwLDvSq5LctFA0iHfstkR5");
CosBootUtil.setBucketName("test-1307462009");
CosBootUtil.setRegion("ap-guangzhou");
CosBootUtil.setUrl("202403/");
String filePath = "D:\\image\\1.png";
MultipartFile file = getMulFileByPath(filePath);
String url = upload( file, null);
System.out.println(url);
}

}

0 comments on commit 9d5e1b5

Please sign in to comment.