diff --git a/backend/src/main/java/com/funeat/product/domain/Product.java b/backend/src/main/java/com/funeat/product/domain/Product.java index 818217d3..a95a7b91 100644 --- a/backend/src/main/java/com/funeat/product/domain/Product.java +++ b/backend/src/main/java/com/funeat/product/domain/Product.java @@ -10,11 +10,12 @@ import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; -import org.springframework.beans.factory.annotation.Value; @Entity public class Product { + public static final String BASIC_IMAGE = null; + @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @@ -41,12 +42,6 @@ public class Product { @OneToMany(mappedBy = "product") private List productRecipes; - @Value("${cloud.aws.image.food}") - private String basicFoodImage; - - @Value("${cloud.aws.image.store}") - private String basicStoreImage; - protected Product() { } @@ -115,11 +110,7 @@ public Double calculateRankingScore(final Long reviewCount) { } public void updateBasicImage() { - if (category.isFood()) { - this.image = basicFoodImage; - return; - } - this.image = basicStoreImage; + this.image = BASIC_IMAGE; } public void updateFavoriteImage(final String topFavoriteImage) { diff --git a/backend/src/main/resources/application-dev.yml b/backend/src/main/resources/application-dev.yml index 2eafb552..0c1a7222 100644 --- a/backend/src/main/resources/application-dev.yml +++ b/backend/src/main/resources/application-dev.yml @@ -44,6 +44,3 @@ cloud: bucket: { S3_BUCKET } folder: { S3_DEV_FOLDER } cloudfrontPath: { S3_DEV_CLOUDFRONT_PATH } - image: - food: { DEV_BASIC_FOOD_IMAGE } - store: { DEV_BASIC_STORE_IMAGE } diff --git a/backend/src/main/resources/application-local.yml b/backend/src/main/resources/application-local.yml index 3bab01cf..27ba9bcc 100644 --- a/backend/src/main/resources/application-local.yml +++ b/backend/src/main/resources/application-local.yml @@ -29,6 +29,3 @@ cloud: bucket: { S3_BUCKET } folder: { S3_LOCAL_FOLDER } cloudfrontPath: { S3_LOCAL_CLOUDFRONT_PATH } - image: - food: { LOCAL_BASIC_FOOD_IMAGE } - store: { LOCAL_BASIC_STORE_IMAGE } diff --git a/backend/src/main/resources/application-prod.yml b/backend/src/main/resources/application-prod.yml index 339749bf..1943e2bf 100644 --- a/backend/src/main/resources/application-prod.yml +++ b/backend/src/main/resources/application-prod.yml @@ -43,6 +43,3 @@ cloud: bucket: { S3_BUCKET } folder: { S3_PROD_FOLDER } cloudfrontPath: { S3_PROD_CLOUDFRONT_PATH } - image: - food: { PROD_BASIC_FOOD_IMAGE } - store: { PROD_BASIC_STORE_IMAGE }