From db9de545fbdd10f17268871d4acdc96ff4b744e4 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:22:43 +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 --- .../java/org/haedal/zzansuni/infrastructure/FakeUploader.java | 4 ++-- 1 file changed, 2 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 30ce97f..40f283f 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 @@ -7,6 +7,7 @@ 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.Primary; import org.springframework.context.annotation.Profile; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; @@ -16,7 +17,7 @@ import java.util.UUID; @Component -@Qualifier("imageUploader") +@Primary @Profile("prod") @RequiredArgsConstructor public class FakeUploader implements ImageUploader { @@ -58,7 +59,6 @@ public String upload(MultipartFile imageFile) { } @Component -@Qualifier("mock") class MockUploader implements ImageUploader { @Override public String upload(MultipartFile imageFile) {