多线程-1

 

 

 

    private ExecutorService executorService;

    @PostConstruct
    public void init() {
        // 初始化线程池
        executorService = Executors.newFixedThreadPool(5);
    }

    executorService.execute(() -> {
         runRule(contactsPersonList);
    });

  

posted @ 2018-05-14 16:13  wanhua.wu  阅读(106)  评论(0编辑  收藏  举报