摘要: 解决SSH证书问题: webClient.getOptions().setUseInsecureSSL(true);//解决ssh证书访问https的问题 阅读全文
posted @ 2016-11-08 17:35 陈泽泽 阅读(800) 评论(0) 推荐(0) 编辑
摘要: package edu.fzu.ir.util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStream... 阅读全文
posted @ 2016-11-08 16:07 陈泽泽 阅读(439) 评论(0) 推荐(0) 编辑
摘要: private static Logger logger = Logger.getLogger(CrawlerCommand.class); log4j.xml 阅读全文
posted @ 2016-11-08 15:57 陈泽泽 阅读(343) 评论(0) 推荐(0) 编辑
摘要: private WebClient getAWebClient() { WebClient webClient = new WebClient(BrowserVersion.FIREFOX_24); webClient.getOptions().setTimeout(20000); // webClient.getCookieManager().s... 阅读全文
posted @ 2016-11-08 15:42 陈泽泽 阅读(6457) 评论(0) 推荐(0) 编辑