Skip to content

Commit

Permalink
fix: 이미지 업로드 관련 빈이 로컬에서 로드되지 않도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
poi1649 committed Oct 3, 2023
1 parent 4c1ee38 commit 08c1474
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
import java.util.Arrays;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.PutObjectRequest;

@Profile(value = {"prod", "dev"})
@Service
public class ImageResourceService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

import com.yigongil.backend.application.ImageResourceService;
import java.net.URI;
import org.springframework.context.annotation.Profile;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@Profile(value = {"prod", "dev"})
@RestController("/v1/images")
public class ImageResourceController {

Expand Down

0 comments on commit 08c1474

Please sign in to comment.