title: What is the difference between a spring rest template and javax.ws.rs client?
body: <p>Javax.ws.rs client implementation</p>
  
  <pre><code>Client client = ClientBuilder.newClient();
  Response response = client.target(URI.contextPathUI + "/api/item").request().get();
  </code></pre>
  
  <p>Spring rest template implementation</p>
  
  <pre><code>HashMap&lt;String, String&gt; param = new HashMap&lt;&gt;();
  param.put("id", itemId);
  return restTemplate.getForObject(URI.contextPathUI + "/api/item", ArrayList.class, param);
  </code></pre>