refactor(web): 使用统一的线程池资源,防止浪费

This commit is contained in:
2023-06-07 16:42:05 +08:00
parent 9ab94f98de
commit 65eb82651f
5 changed files with 34 additions and 42 deletions

View File

@@ -0,0 +1,14 @@
package com.lanyuanxiaoyao.service.configuration;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 线程池
*
* @author lanyuanxiaoyao
* @date 2023-06-07
*/
public class ExecutorProvider {
public static final ExecutorService EXECUTORS = Executors.newWorkStealingPool(60);
}