摘要:
//超过60s断开连接private final static int TIMEOUT = 1000 * 60;private Document getDocumentByUrl(String url) throws Exception { return Jsoup.connect(url) .he 阅读全文
摘要:
//线程的数量private static final int UPD_NO_THREADS = 5;//线程池的容量private ExecutorService executorService = Executors.newFixedThreadPool(UPD_NO_THREADS);publ 阅读全文