rejected from java.util.concurrent.ThreadPoolExe错误

The thread pool is closed to solve: judge whether the thread pool is closed when calling

if(!ThreadPoolUtil.executor.isShotdown()){
    //TOOD 执行业务
}

 

Guess you like

Origin blog.csdn.net/GoSaint/article/details/107463396