Skip to content

Commit

Permalink
🐛 s3 url 변경 (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
u-genuine authored Feb 19, 2024
1 parent 167a962 commit 979cdbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/aromanticcat/umcproject/S3/S3Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.ObjectMetadata;
import java.io.IOException;
import java.util.UUID;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.UUID;

@Slf4j
@Component
@RequiredArgsConstructor
Expand All @@ -22,7 +23,7 @@ public class S3Service {
private String bucketName;
private String dir1 = "/letter-paper";
private String dir2 = "/stamp";
private String defaultUrl = "https://airplanning-bucket.s3.ap-northeast-2.amazonaws.com";
private String defaultUrl = "https://romantic-cat-bucket.s3.ap-northeast-2.amazonaws.com";

public String uploadFile1(MultipartFile file) throws IOException {

Expand Down

0 comments on commit 979cdbf

Please sign in to comment.