标签:trace gen err 实现 ace start exception art 爬取
1对方法实现runable
class threadEnterpriseGrabOther implements Runnable{ String companyId = ""; String company = ""; String sys_language=""; public threadEnterpriseGrabOther(String companyId, String company, String sys_language) { super(); this.companyId = companyId; this.company = company; this.sys_language = sys_language; } @Override public void run() { try { enterpriseGrabOther(companyId,company,sys_language); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
2调用
//线程爬取企查查裁判文书,法院公告,开庭公告信息数据并保存 Thread th=new Thread(new threadEnterpriseGrabOther(companyId, companyName, sys_language)); th.start();
标签:trace gen err 实现 ace start exception art 爬取
原文地址:https://www.cnblogs.com/dsh2018/p/10180819.html