diff --git a/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/util/CosBootUtil.java b/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/util/CosBootUtil.java index 7c4c25c..9da4f24 100644 --- a/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/util/CosBootUtil.java +++ b/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/util/CosBootUtil.java @@ -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); - } + } \ No newline at end of file