diff --git a/src/main/java/cn/luijp/escserver/controller/CommentController.java b/src/main/java/cn/luijp/escserver/controller/CommentController.java index 4b24617..b1a3a6b 100644 --- a/src/main/java/cn/luijp/escserver/controller/CommentController.java +++ b/src/main/java/cn/luijp/escserver/controller/CommentController.java @@ -18,7 +18,7 @@ public CommentController(CommentControllerService commentControllerService) { this.commentControllerService = commentControllerService; } - @PostMapping("/list/{postId}/{pageNum}/{pageSize}") + @GetMapping("/list/{postId}/{pageNum}/{pageSize}") public ResponseDto list(@PathVariable Long postId, @PathVariable Integer pageNum, @PathVariable Integer pageSize) { CommentListDto comment = commentControllerService.getComment(postId, pageNum, pageSize); return ResponseDto.successWithData(comment);