Timed out while waiting for executor ‘taskScheduler‘ to terminate
使用@Scheduled 注解,我们一般会为其配置上一个线程池,我在写一个简单demo的时候,发现配上线程池后,关闭程序时,会打印出如下日志,
2021-07-12 23:50:10.381 [tid: ][skId: ] [SpringContextShutdownHook] INFO o.s.s.c.ThreadPoolTaskScheduler:218 - Shutting down ExecutorService ‘taskScheduler’
2021-07-12 23:50:12.387
原创
2021-07-13 00:11:28 ·
2574 阅读 ·
0 评论