ThreadPoolTaskExecutor create 参数例子
时间: 2023-03-14 08:18:13 浏览: 135
java 线程池例子ThreadPoolExecutor
5星 · 资源好评率100%
参数例子可以这样:ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(5); executor.setMaxPoolSize(10); executor.setQueueCapacity(25); executor.initialize();
阅读全文