executorService.submit(()->{spiderService.spiderData(SysConstant.BASE_URL,params);countDownLatch.countDown();});将上面这段代码转化为普通的java表达式
2 回答
繁花如伊
TA贡献2012条经验 获得超12个赞
voidsubmitFunction(){spiderService.spiderData(SysConstant.BASE_URL,params);countDownLatch.countDown();}executorService.submit(submitFunction);
狐的传说
TA贡献1804条经验 获得超3个赞
executorService.submit(new方法参数类型(){void接口名(){spiderService.spiderData(SysConstant.BASE_URL,params);countDownLatch.countDown();}});
添加回答
举报
0/150
提交
取消