在spring中配置线程池

来源:互联网 发布:二叉树的遍历算法结果 编辑:程序博客网 时间:2024/05/19 02:25
<bean id ="taskExecutor"  class ="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor" >        <property name ="corePoolSize" value ="20" />        <property name ="keepAliveSeconds" value ="60000" />        <property name ="maxPoolSize" value ="100" />        <property name ="queueCapacity" value ="50"/></bean>

0 0
原创粉丝点击