diff --git a/src/main/java/com/inq/wishhair/wesharewishhair/review/presentation/ReviewQueryTestController.java b/src/main/java/com/inq/wishhair/wesharewishhair/review/presentation/ReviewQueryTestController.java index ba368af..a383f61 100644 --- a/src/main/java/com/inq/wishhair/wesharewishhair/review/presentation/ReviewQueryTestController.java +++ b/src/main/java/com/inq/wishhair/wesharewishhair/review/presentation/ReviewQueryTestController.java @@ -3,6 +3,7 @@ import java.util.List; import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -23,6 +24,7 @@ public class ReviewQueryTestController { private final ReviewQueryDslRepository reviewQueryDslRepository; @Transactional(readOnly = true) + @GetMapping("/join") public ResponseWrapper withJoin() { List reviews = reviewQueryDslRepository.joinWithLikeQuery() .stream() @@ -32,6 +34,7 @@ public ResponseWrapper withJoin() { } @Transactional(readOnly = true) + @GetMapping("/no_join") public ResponseWrapper withoutJoin() { List reviews = reviewQueryDslRepository.noJoinQuery(); return ReviewResponseAssembler.toWrappedReviewResponse(reviews);