ResponseEntity
org.springframework.http.ResponseEntity
HTTP 응답을 나타내는 클래스( 컨트롤러 메서드에서 반환될때 유용 )
클라이언트에게 전달할 응답 본문과 함께 HTTP 상태 코드, 헤더 등의 다양한 정보를 설정할 수 있다.
HttpEntity<T>를 확장하므로, HTTP 응답의 본문과 헤더를 포함.
'Spring' 카테고리의 다른 글
| Rest API (0) | 2024.08.22 |
|---|---|
| @NoArgsConstructor(access = AccessLevel.PROTECTED) (1) | 2024.08.05 |
| sts에서 springBoot 프로젝트 war파일로 패키징, Gradle Tasks (1) | 2024.04.10 |
| RestTemplate( org.springframework.web.client.RestTemplate.class ) (1) | 2023.11.15 |
| @Controller, @RestController (0) | 2023.11.12 |