Skip to content

Commit

Permalink
[Feat] s3 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed Jun 1, 2024
1 parent 2102eb4 commit db9de54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,7 +17,7 @@
import java.util.UUID;

@Component
@Qualifier("imageUploader")
@Primary
@Profile("prod")
@RequiredArgsConstructor
public class FakeUploader implements ImageUploader {
Expand Down Expand Up @@ -58,7 +59,6 @@ public String upload(MultipartFile imageFile) {
}

@Component
@Qualifier("mock")
class MockUploader implements ImageUploader {
@Override
public String upload(MultipartFile imageFile) {
Expand Down

0 comments on commit db9de54

Please sign in to comment.