欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

异步线程执行器ThreadPoolTaskExecutor

程序员文章站 2022-07-12 21:48:58
...
[size=medium]xml文件

<?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]
相关标签: ThreadPoolTaskExecutor