zhaowenxuan
2025-04-29 0f5d6adf976976f19a540001682a1bfa7cfca0ee
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;
//    }
//}