更新时间:2023-12-03 20:53:28
现在,您可以使用maxBodySize()方法在版本1.7.2中限制最大正文大小. http://jsoup.org/apidocs/org/jsoup/Connection .Request.html#maxBodySize() 默认情况下限制为1MB,这将防止内存泄漏.
Now you can limit the max body size with version 1.7.2 using maxBodySize() method. http://jsoup.org/apidocs/org/jsoup/Connection.Request.html#maxBodySize() By default is limited to 1MB and this will prevent from memory leaks.