From 979cdbf02d1b4deb00a137a2514591b9899ba64c Mon Sep 17 00:00:00 2001 From: u-genuine <101379241+u-genuine@users.noreply.github.com> Date: Mon, 19 Feb 2024 22:11:28 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20s3=20url=20=EB=B3=80=EA=B2=BD=20(#175)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/aromanticcat/umcproject/S3/S3Service.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/aromanticcat/umcproject/S3/S3Service.java b/src/main/java/aromanticcat/umcproject/S3/S3Service.java index ba42e05..973bed8 100644 --- a/src/main/java/aromanticcat/umcproject/S3/S3Service.java +++ b/src/main/java/aromanticcat/umcproject/S3/S3Service.java @@ -2,8 +2,6 @@ import com.amazonaws.services.s3.AmazonS3Client; import com.amazonaws.services.s3.model.ObjectMetadata; -import java.io.IOException; -import java.util.UUID; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; @@ -11,6 +9,9 @@ import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; +import java.io.IOException; +import java.util.UUID; + @Slf4j @Component @RequiredArgsConstructor @@ -22,7 +23,7 @@ public class S3Service { private String bucketName; private String dir1 = "/letter-paper"; private String dir2 = "/stamp"; - private String defaultUrl = "https://airplanning-bucket.s3.ap-northeast-2.amazonaws.com"; + private String defaultUrl = "https://romantic-cat-bucket.s3.ap-northeast-2.amazonaws.com"; public String uploadFile1(MultipartFile file) throws IOException {