ThreadPoolTaskExecutor是什么
时间: 2023-10-12 15:05:14 浏览: 86
ThreadPoolTaskExecutor是一个类,属于Java的Spring框架中的一个任务执行器类(Executor)。它是对Java 5 java.util.concurrent.Executor类的包装,并且暴露了Executor的配置参数作为bean属性。通过使用ThreadPoolTaskExecutor,我们可以自定义线程池的各种属性,例如线程池大小、队列容量、拒绝策略等等。在Spring框架中,我们可以使用IoC配置的方式来创建和配置ThreadPoolTaskExecutor实例,以满足我们的需求。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Spring中的线程池ThreadPoolTaskExecutor介绍](https://blog.csdn.net/weixin_33882452/article/details/85784287)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [线程池ThreadPoolExecutor详解(整理详细)](https://blog.csdn.net/trusause/article/details/125747447)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文