首页>代码>基于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     LV10
                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日
            
            
        
 
                 
                 最近浏览
最近浏览