title: Is RestTemplate by default https enabled
body: <p>If using simply the default <code>RestTemplate</code> (by using just <code>new RestTemplate()</code>) and pass it with an url with https, does that mean the connection is using TLS ?</p>
  <pre><code>TestRequest request = getTestRequest();
  
  RestTemplate r = new RestTemplate();
  String url = &quot;https://FQDN/path/resource&quot;;
  ResponseEntity&lt;String&gt; resp = r.postForEntity(url, request, String.class);
  
  System.out.println(&quot;resp - &quot; + resp.getBody());
  </code></pre>
  <p>I have tried with something like below and the call is successful. Actually, if I change the url to http, the call doesn't work. However, I got confused after getting to learn from somewhere that to use https, it would have to use something like secured RestTemplate (and set some TLS config setting). But from my testing, it seem like by using the default RestTemplate (and pass it with an https url), it would already work.</p>