diff --git a/build.gradle b/build.gradle index 262c23f..5e5e699 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,7 @@ dependencies { // payment implementation 'com.github.iamport:iamport-rest-client-java:0.2.23' + implementation 'com.siot:iamport-rest-client:1.2.0' compileOnly 'org.projectlombok:lombok' diff --git a/src/main/java/com/gongspot/project/domain/notification/entity/Notification.java b/src/main/java/com/gongspot/project/domain/notification/entity/Notification.java index f055ae4..a7f4828 100644 --- a/src/main/java/com/gongspot/project/domain/notification/entity/Notification.java +++ b/src/main/java/com/gongspot/project/domain/notification/entity/Notification.java @@ -15,7 +15,7 @@ @AllArgsConstructor @Setter @Entity -@Table(name = "Notifications") +@Table(name = "notifications") public class Notification extends BaseEntity { // 공지사항 엔티티 @@ -30,7 +30,6 @@ public class Notification extends BaseEntity { @Column(name = "title", length = 20) private String title; - @Lob @Column(name = "content") private String content; diff --git a/src/main/java/com/gongspot/project/domain/review/controller/ReviewController.java b/src/main/java/com/gongspot/project/domain/review/controller/ReviewController.java index 58e29ea..0e156b9 100644 --- a/src/main/java/com/gongspot/project/domain/review/controller/ReviewController.java +++ b/src/main/java/com/gongspot/project/domain/review/controller/ReviewController.java @@ -32,7 +32,7 @@ public class ReviewController { public ApiResponse createReview( @PathVariable("placeId") Long placeId, @RequestPart("review") @Valid ReviewRequestDTO.ReviewRegisterDTO review, - @RequestPart("reviewPictures") List reviewPictures) { + @RequestPart(name = "reviewPictures", required = false) List reviewPictures) { User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); Long userId = user.getId(); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 5f5187e..8194d4f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -9,7 +9,8 @@ spring.datasource.password=${DB_PASSWORD} spring.data.redis.host=localhost spring.data.redis.port=6379 -spring.jpa.hibernate.ddl-auto= update +spring.jpa.hibernate.ddl-auto=validate + spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect