From fbf3ce7c334771c3a73b473db1630d19d3764079 Mon Sep 17 00:00:00 2001 From: xuwujing <1060589146@qq.com> Date: Wed, 13 Mar 2024 17:01:20 +0800 Subject: [PATCH] u --- .../src/main/java/com/pancm/web/ConfigController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/web/ConfigController.java b/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/web/ConfigController.java index 4c968eb..5000608 100644 --- a/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/web/ConfigController.java +++ b/springcloud-alibaba/springcloud-alibaba-nacos-feign/springcloud-alibaba-nacos-feign-consumer2/src/main/java/com/pancm/web/ConfigController.java @@ -30,10 +30,10 @@ public String getName() { @PostMapping("/upload") public String upload(@RequestParam("file") MultipartFile file) throws Exception { - CosBootUtil.setAccessKeyId("AKIDcBkIvqlofcvJHHCEMSVXdaMzTCDFwc8U"); - CosBootUtil.setAccessKeySecret("IOJBtStAIoRwLDvSq5LctFA0iHfstkR5"); - CosBootUtil.setBucketName("test-1307462009"); - CosBootUtil.setRegion("ap-guangzhou"); + CosBootUtil.setAccessKeyId("xxx"); + CosBootUtil.setAccessKeySecret("xx"); + CosBootUtil.setBucketName("xxx"); + CosBootUtil.setRegion("xxx"); CosBootUtil.setUrl("202403/"); String url = CosBootUtil.upload(file, null); return url;