|
|
@@ -0,0 +1,18 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
|
+
|
|
|
+ <!-- 线程池配置 -->
|
|
|
+ <bean id="threadPoolTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
|
|
|
+ <!-- 线程池维护线程的最少数量 -->
|
|
|
+ <property name="corePoolSize" value="50" />
|
|
|
+ <!-- 线程池维护线程的最大数量,默认为Integer.MAX_VALUE -->
|
|
|
+ <property name="maxPoolSize" value="1000" />
|
|
|
+ <!-- 线程池所使用的缓冲队列,一般需要设置值>=notifyScheduledMainExecutor.maxNum;默认为Integer.MAX_VALUE -->
|
|
|
+ <property name="queueCapacity" value="200" />
|
|
|
+ <!-- 线程池维护线程所允许的空闲时间,默认为60s -->
|
|
|
+ <property name="keepAliveSeconds" value="300" />
|
|
|
+ </bean>
|
|
|
+
|
|
|
+</beans>
|