zhaowenxuan
2025-04-27 1b70e516c5122014f66086962306a998e0b27ef1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//package com.ltkj.framework.aspectj;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import java.util.concurrent.Executor;
//
//@Configuration
//public class AsyncConfig {
//
//    @Bean(name = "async")
//    public Executor taskExecutor() {
//        DataSourceAwareThreadPoolTaskExecutor executor = new DataSourceAwareThreadPoolTaskExecutor();
//        executor.setCorePoolSize(10);
//        executor.setMaxPoolSize(20);
//        executor.setQueueCapacity(25);
//        executor.setThreadNamePrefix("Async-");
//        executor.initialize();
//        return executor;
//    }
//}