HTTP1 [HTTP] Delete 요청을 보내면 응답을 못 받을까? Contents 문제점 어느 때와 같이 CRUD 작업을 하고 있었는데, 프론트엔드에서 Delete 요청을 할 때 Id 값을 받아야 된다고 했다. @DeleteMapping("/{comment-id}") public ResponseEntity deleteComment( @PathVariable("comment-id") @Positive long commentId) { commentService.deleteComment(commentId); return new ResponseEntity(new CommentDeleteDto(commentId), HttpStatus.NO_CONTENT); } Controller에 반환값으로 commentId를 받을 수 있게 내용을 수정하고 @Getter public class.. 2022. 11. 3. 이전 1 다음 728x90