springboot ThreadPoolTaskExecutor
时间: 2023-10-14 17:32:04 浏览: 101
ThreadPoolTaskExecutor是Spring Boot中的一个配置类,用于配置线程池。它是基于java.util.concurrent.ThreadPoolExecutor实现的异步线程执行器。在Spring Boot中,我们可以通过配置TaskConfig类来定义ThreadPoolTaskExecutor的一些属性,例如核心线程数、最大线程数和队列容量等。通过使用ThreadPoolTaskExecutor,我们可以实现多线程任务的并发执行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Springboot的ThreadPoolTaskExecutor](https://blog.csdn.net/prettyleg/article/details/101354037)[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* [SpringBoot使用线程池之ThreadPoolTaskExecutor和ThreadPoolExecutor](https://blog.csdn.net/FBB360JAVA/article/details/120795737)[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 ]
阅读全文