为什么我需要发布 ClientResponse:
response.releaseConnection();
有优势吗?为什么 RestEasy 不处理这个?
有时我必须释放它,有时我没有 - 这是什么情况?
最佳答案
Resteasy will release the connection under the covers. The only counterexample is the case in which the response is an instance of InputStream, which must be closed explicitly.
您可以在 RESTEasy documentation. 中阅读更多相关信息
关于java - RestEasy - ClientResponse.ReleaseConnection(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11449863/