From e3e0f58625e7f16ef9b0a0b1f061447377bb600e Mon Sep 17 00:00:00 2001 From: dltjdgh0428 Date: Sat, 16 Mar 2024 17:18:03 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20Review=20=EC=88=98=EC=A0=95=EC=8B=9C?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C=EB=90=98=EB=8A=94=20=ED=98=84=EC=83=81=20?= =?UTF-8?q?=EB=B0=9C=EC=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 -- .../com/book_everywhere/service/ReviewService.java | 1 + src/main/resources/templates/homePage.html | 10 ---------- src/main/resources/templates/loginPage.html | 12 ------------ 4 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 src/main/resources/templates/homePage.html delete mode 100644 src/main/resources/templates/loginPage.html diff --git a/build.gradle b/build.gradle index 2a07335..3ecb101 100644 --- a/build.gradle +++ b/build.gradle @@ -34,8 +34,6 @@ dependencies { testImplementation 'org.springframework.security:spring-security-test' implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2' - //테스트를위한 - implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' } tasks.withType(JavaCompile) { diff --git a/src/main/java/com/book_everywhere/service/ReviewService.java b/src/main/java/com/book_everywhere/service/ReviewService.java index 35916eb..46b986b 100644 --- a/src/main/java/com/book_everywhere/service/ReviewService.java +++ b/src/main/java/com/book_everywhere/service/ReviewService.java @@ -165,6 +165,7 @@ public class ReviewService { Review review = reviewRepository.findById(reviewId) .orElseThrow(() -> new EntityNotFoundException(CustomErrorCode.REVIEW_NOT_FOUND)); review.changeReview(reviewRespDto); + reviewRepository.save(review); } public void 등록또는수정전예외처리(ReviewRespDto reviewRespDto) { diff --git a/src/main/resources/templates/homePage.html b/src/main/resources/templates/homePage.html deleted file mode 100644 index 3b1dfac..0000000 --- a/src/main/resources/templates/homePage.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Title - - -테스트 성공 - - \ No newline at end of file diff --git a/src/main/resources/templates/loginPage.html b/src/main/resources/templates/loginPage.html deleted file mode 100644 index 925d40e..0000000 --- a/src/main/resources/templates/loginPage.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Title - - - - 카카오톡으로 간편 로그인 - - - \ No newline at end of file