From 2102eb416053b856e2801f611bc4a856b677c081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=99=8D=EC=84=9D?= <78216059+bayy1216@users.noreply.github.com> Date: Sun, 2 Jun 2024 03:18:32 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20s3=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/haedal/zzansuni/infrastructure/FakeUploader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/FakeUploader.java b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/FakeUploader.java index 4da265d..30ce97f 100644 --- a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/FakeUploader.java +++ b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/FakeUploader.java @@ -5,6 +5,7 @@ import com.amazonaws.services.s3.model.PutObjectRequest; import lombok.RequiredArgsConstructor; import org.haedal.zzansuni.domain.ImageUploader; +import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Profile; import org.springframework.core.annotation.Order; @@ -15,7 +16,7 @@ import java.util.UUID; @Component -@Order(1) +@Qualifier("imageUploader") @Profile("prod") @RequiredArgsConstructor public class FakeUploader implements ImageUploader { @@ -57,7 +58,7 @@ public String upload(MultipartFile imageFile) { } @Component -@Order(2) +@Qualifier("mock") class MockUploader implements ImageUploader { @Override public String upload(MultipartFile imageFile) {