executorService.submit(()->{spiderService.spiderData(SysConstant.BASE_URL,params);countDownLatch.countDown();});将上面这段代码转化为普通的java表达式
2 回答
慕标琳琳
TA贡献1830条经验 获得超9个赞
voidsubmitFunction(){spiderService.spiderData(SysConstant.BASE_URL,params);countDownLatch.countDown();}executorService.submit(submitFunction);
桃花长相依
TA贡献1860条经验 获得超8个赞
executorService.submit(new方法参数类型(){void接口名(){spiderService.spiderData(SysConstant.BASE_URL,params);countDownLatch.countDown();}});
添加回答
举报
0/150
提交
取消