ResponseEntitySpring Framework에서 제공하는 클래스 HTTP 응답의 전체 구성 요소를 개발자가 직접 제어할 수 있게 도와주는 '봉투' 역할 HTTP 응답의 구성 Status Line, Code: 응답 상태 (200 OK, 404 Not Found, 500 Error 등)Headers: 응답에 대한 메타 데이터 (Content-Type, 인증 정보 등)Body: 실제 전달할 데이터 (JSON, HTML, 텍스트 등) @GetMapping("/history/{roomId}")public ResponseEntity getChatHistory(@PathVariable Long roomId) { List dtos = chatService.getChatHistory(roomId); ..