首页>代码>基于Springboot+Mybatis+ SpringMvc+springsecrity+Redis完整网站后台管理系统>/boot-security-master/src/main/java/com/boot/security/server/config/AsycTaskExecutorConfig.java
package com.boot.security.server.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.TaskExecutor;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

/**
 * 线程池配置、启用异步
 * 
 * @author wpw
 *
 *         2017年8月19日
 */
@EnableAsync(proxyTargetClass = true)
@Configuration
public class AsycTaskExecutorConfig {

	@Bean
	public TaskExecutor taskExecutor() {
		ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
		taskExecutor.setCorePoolSize(50);
		taskExecutor.setMaxPoolSize(100);

		return taskExecutor;
	}
}
最近下载更多
15719908287  LV9 2024年11月1日
CB6548  LV1 2024年8月23日
llllllK  LV5 2024年5月13日
微信网友_6765346083115008  LV1 2023年12月5日
wuying8208  LV15 2023年11月28日
WHY-small  LV15 2023年8月29日
yqyqyqyqy  LV4 2023年7月23日
debris  LV1 2023年5月18日
hihhhh  LV6 2023年4月2日
adongliu666  LV4 2023年3月28日
最近浏览更多
111222112 4月18日
暂无贡献等级
Solowen 4月16日
暂无贡献等级
SZEPEZS  LV9 2月18日
kkkxyh  LV13 2月11日
莓冰淇淋 2024年12月26日
暂无贡献等级
npcccc 2024年12月20日
暂无贡献等级
wjh007  LV5 2024年12月17日
阿凡达发1231 2024年12月8日
暂无贡献等级
Kinsum 2024年12月6日
暂无贡献等级
15719908287  LV9 2024年11月1日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友