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 3773b2b commit 2102eb4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -15,7 +16,7 @@
import java.util.UUID;

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

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

0 comments on commit 2102eb4

Please sign in to comment.