Spring 线程池 简单配置 博客分类: Spring springbeanthread pool
程序员文章站
2024-03-24 09:24:16
...
Bean 配置如下:
<bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> <property name="corePoolSize" value="5" /> <property name="maxPoolSize" value="10" /> <property name="queueCapacity" value="25" /> </bean>