Skip to content

Instantly share code, notes, and snippets.

@Sebastian1011
Last active April 21, 2018 10:36
Show Gist options
  • Save Sebastian1011/91512ce9bdeea8017986e021c866418d to your computer and use it in GitHub Desktop.
Save Sebastian1011/91512ce9bdeea8017986e021c866418d to your computer and use it in GitHub Desktop.
Spring boot RestTemplate vs HttpClient
firstly, RestTemplate and HttpCient don't operate the same abstraction level.
HttpClient is a general-purpose lib to communicate using HTTP, but RestTemplate is a highter-level abstraction, dealing with Jons/xml transformation of entities. RestTemplate delegates to a ClientHttpFactory , and one of the implementations of this interface uses HttpClient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment