2016-09-30 25 views
3

私のRESTクライアントモジュールをHttpClient.executeMethod(method)からRestTemplate.postForLocation(uri, obj)に変更しています。 HttpClientで、私は明示的方法の接続解除になります。RestTemplateは自動的に接続を解除しますか?

deleteMethod.releaseConnectionを();

SpringRestTemplateの中には何も見つかりません。それは自動的に接続を解放しますか?もう1つの方法は、RestTemplate.postForLocationと呼んだ後で何もしないことは安全ですか?

+2

これは、あなたの質問に答えるかもしれない、http://stackoverflow.com/questions/31869193/using-spring-rest-template-either-creating-too-many-connections-or-slow –

答えて

関連する問題