RequestEntity1 [Spring] RequestEntity 사용하기, http 기반 응답 구현하기 Spring Framework에서 제공하는 클래스 중 HttpEntity라는 클래스가 존재한다. 이것은 HTTP 요청(Request) 또는 응답(Response)에 해당하는 HttpHeader와 HttpBody를 포함하는 클래스이다. HttpEntity 클래스를 상속받아 구현한 클래스가 RequestEntity, ResponseEntity 클래스이다. 별도 포스팅으로 ResponseEntity를 설명하려함에도 같이 적는 이유는 RequestEntity, ResponseEntity가 세트로 사용되기 때문이다. 같이 사용함 으로써 간편하게 rest 전송 기능을 구현할 수 있다. 우선 RequestEntity에 대해 알아보자. public RequestEntity(@Nullable T body, @Nullab.. 2023. 6. 30. 이전 1 다음