多线程-1

    private ExecutorService executorService;

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

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

  

猜你喜欢

转载自www.cnblogs.com/wanhua-wu/p/9036644.html