Using getResponseBodyAsStream instead is recommended警告的解决方案
超简单的使用httpclient的GetMethod,总是挑出饶人的警告信息:
Oct 30, 2006 12:21:42 AM org.apache.commons.httpclient.HttpMethodBase getResponseBody WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
程序太简单还要为logging加个properties觉得麻烦,在代码中加入下面几行代码就可以了: