I am shifting my REST
client module from HttpClient.executeMethod(method)
to RestTemplate.postForLocation(uri, obj)
. With the HttpClient
, I would explicitly release the connection of the method:
deleteMethod.releaseConnection();
I cannot find anything equivalent within the Spring
RestTemplate
. Does it automatically release connections? Another way to ask would be, I suppose, is it safe to not do anything after calling the RestTemplate.postForLocation
?