resttemplate

RestTemplate deprecate?? 구글링을 하다보면 “RestTemplate은 Deprecate될 예정이니 WebClient를 써라”라는 말을 심심치 않게 발견할 수 있다. 실제로 Spring 공식 깃에 들어가서 커밋을 보면 2018년 7월 27일에 rstoyanchev 라는 분이 javadoc에 아래와 같은 내용을 남겼다. future version에 deprecated 될 것이니, 더 modern한 WebClient를 사용해달라는 메세지이다. 하지 만?! 2020년 2월 11일에 다시 본인이 내용을 수정했다. deprecate한단 말은 지우고, maintenance mode가 된다는 말로 수정했다. 이를 두고 토비님은 처음엔 WebClient를 밀어서 RestTemplate을 depreca..
개요 서버 to 서버로 HTTP 요청을 보내는 방법으로 RestTemplate과 WebClient가 있다. Spring 5.0 이전까지는 RestTemplate을 사용했으나, 5.0에서 WebClient가 나왔고, 현재는 WebClient 사용을 권고하고 있다. 대세는 WebClient이고, 추후 RestTemplate의 지원을 중단할지도 모르기 때문에… 현재 대체로 WebClient로 마이그레이션 하고있는 추세라고 한다. WebClient vs RestTemplate 위 글은 RestTemplate과 WebClient에 대해 다루고 있다. 요약: RestTemplate은 아직 사용 가능하다. 단, RestTemplate은 synchronous하고 blocking한 반면, WebClient는 asynch..
승농
'resttemplate' 태그의 글 목록