From 3b62f5fc24f356f29525d979abc55431548eee41 Mon Sep 17 00:00:00 2001 From: TaeHoon0 Date: Sun, 28 Jul 2024 16:56:35 +0900 Subject: [PATCH] =?UTF-8?q?[#148]=20test=20:=20s3=20upload=20error=20messa?= =?UTF-8?q?ge=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/CatchStudy/controller/ManagerController.java | 9 +-------- .../java/com/example/CatchStudy/service/S3Service.java | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/example/CatchStudy/controller/ManagerController.java b/src/main/java/com/example/CatchStudy/controller/ManagerController.java index 7b5e46e..9db930c 100644 --- a/src/main/java/com/example/CatchStudy/controller/ManagerController.java +++ b/src/main/java/com/example/CatchStudy/controller/ManagerController.java @@ -28,10 +28,7 @@ public Response saveStudyCafe(@RequestPart(value = "data") ManagerRequestDto man @RequestPart(value = "multiple_images", required = false) List multipleImages) { managerService.saveStudyCafe(managerRequestDto, titleImage, multipleImages); - System.out.println(managerRequestDto.getClosedDay()); - System.out.println(managerRequestDto.getCafeName()); - System.out.println(managerRequestDto.getSeats()); - System.out.println(managerRequestDto.getCafePhone()); + return Response.success(); } @@ -39,10 +36,6 @@ public Response saveStudyCafe(@RequestPart(value = "data") ManagerRequestDto man public Response updateStudyCafe(@RequestPart(value = "data") ManagerRequestDto managerRequestDto, @RequestPart(value = "title_image", required = false) MultipartFile titleImage, @RequestPart(value = "multiple_images", required = false) List multipleImages) { - System.out.println(managerRequestDto.getCafePhone()); - System.out.println(managerRequestDto.getCafeName()); - System.out.println(managerRequestDto.getAddress().getCity()); - System.out.println(managerRequestDto.getRoomInfo().getCancelAvailableTime()); managerService.updateStudyCafe(managerRequestDto, titleImage, multipleImages); return Response.success(); diff --git a/src/main/java/com/example/CatchStudy/service/S3Service.java b/src/main/java/com/example/CatchStudy/service/S3Service.java index 7fc1f55..2403798 100644 --- a/src/main/java/com/example/CatchStudy/service/S3Service.java +++ b/src/main/java/com/example/CatchStudy/service/S3Service.java @@ -84,6 +84,7 @@ private String uploadImageToS3(MultipartFile image) throws IOException { .withCannedAcl(CannedAccessControlList.PublicRead); amazonS3.putObject(putObjectRequest); // S3에 이미지 업로드 }catch (Exception e){ + System.out.println(e.getMessage()); throw new AmazonS3Exception(ErrorCode.IO_EXCEPTION_ON_IMAGE_UPLOAD.getMessage()); }finally { byteArrayInputStream.close();