java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@432b7210 rejected from java.util.concurrent.ThreadPoolExecutor@41923f28[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 2]
java.util.concurrent.RejectedExecutionException:任务java.util.concurrent.FutureTask@432b7210从java.util.concurrent.ThreadPoolExecutor@41923f28拒绝[已终止,池大小=0,活动线程=0,排队任务=0,已完成任务=2]
原因:
是我shutdownNow(); 然后还像线程池提交任务。
解决:
重新生成
Executors.newFixedThreadPool(5);