mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 12:35:07 +08:00
update 修复启动失败
This commit is contained in:
@@ -13,6 +13,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.ScheduledThreadPoolExecutor;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
|
||||
@@ -35,7 +36,7 @@ public class ThreadPoolController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("scheduledExecutorService")
|
||||
private ScheduledThreadPoolExecutor scheduledExecutorService;
|
||||
private ScheduledExecutorService scheduledExecutorService;
|
||||
|
||||
/**
|
||||
* 获取所有线程池运行状态
|
||||
@@ -52,7 +53,10 @@ public class ThreadPoolController {
|
||||
poolInfoList.add(buildTaskExecutorInfo("thirdpartyTaskExecutor", "第三方推送线程池", thirdpartyTaskExecutor));
|
||||
|
||||
// 定时任务线程池
|
||||
poolInfoList.add(buildScheduledExecutorInfo("scheduledExecutorService", "定时任务线程池", scheduledExecutorService));
|
||||
if (scheduledExecutorService instanceof ScheduledThreadPoolExecutor) {
|
||||
poolInfoList.add(buildScheduledExecutorInfo("scheduledExecutorService", "定时任务线程池",
|
||||
(ScheduledThreadPoolExecutor) scheduledExecutorService));
|
||||
}
|
||||
|
||||
return AjaxResult.success(poolInfoList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user