摘要: 启动线程的时候注入Service的时候失败,这是因为在线程中为了线程安全,是防注入的 public class WebSiteHtmlUnitThread implements Runnable { @Autowired private RefereeProcessor refereeProcess 阅读全文
posted @ 2022-03-31 15:14 —阿峰— 阅读(396) 评论(0) 推荐(0) 编辑
摘要: HtmlUnit做爬虫,爬取页面的时候,启动WebClient进行爬虫,会打印大量的日志,会很烦人。 别担心去除日志就可以了,话不多说,上代码。 <?xml version="1.0" encoding="UTF-8"?> <configuration debug="true" scan="fals 阅读全文
posted @ 2022-03-31 14:44 —阿峰— 阅读(390) 评论(0) 推荐(0) 编辑