Skip to content

Commit

Permalink
Merge pull request #37 from saessagMarket/hotfix/fix-build-error
Browse files Browse the repository at this point in the history
 s3 설정 충돌 해결
  • Loading branch information
JunBe authored Jan 17, 2025
2 parents 3871216 + 001691a commit a3c9cda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ public class ProductGenerateData {

for (int i = 1; i <= 100; i++) {
Product product = new Product();
product.setPhoto("photo" + i + ".jpg");
product.setTitle("상품명 " + i);
product.setPrice((long) (1000 + random.nextInt(9000))); // 1000 ~ 10000 사이의 값
product.setDescription("상품의 설명 " + i);
product.setMeetingPlace("만날 장소 " + (random.nextInt(10) + 1)); // City 1 ~ City 10
product.setAddedDate(LocalDate.now().minusDays(random.nextInt(30))); // 최근 30일 내 날짜
product.setStatus(Product.ProductStatus.values()[random.nextInt(Product.ProductStatus.values().length)]); // Enum 랜덤 선택
product.setUser(user);

Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ logging:
server:
port: 8082

aws:
s3:
bucket-name: saessag
region: ap-northeast-2
access-key: ${AWS_ACCESS_KEY}
secret-key: ${AWS_SECRET_KEY}

0 comments on commit a3c9cda

Please sign in to comment.