异步线程执行器ThreadPoolTaskExecutor
程序员文章站
2022-07-12 21:48:58
...
[size=medium]xml文件
ThreadPoolTaskExecutor引用spring-context-3.0.5.jar包[/size]
<?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="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> <property name="corePoolSize" value="10" /> <property name="maxPoolSize" value="20" /> </bean> </beans>
ThreadPoolTaskExecutor引用spring-context-3.0.5.jar包[/size]
上一篇: linux 批量切割web日志shell
下一篇: Web服务自动监控shell