- 博客(1)
- 收藏
- 关注
原创 等待线程池执行完毕后执行后续代码实现的一种方式
线程池配置 @Configuration @Slf4j public class BeanConfig { /** * 执行io操作的线程池 */ @Bean public ThreadPoolExecutor ioPoolExecutor() { AtomicInteger incr = new AtomicInteger(0); ThreadFactory threadFactory = runnable -> {
2021-04-16 16:50:26 729
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人