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;