SpringBoot 多线程处理异步请求
配置@Slf4j@Configuration@EnableAsync // 启用异步任务public class AsyncConfiguration { // 声明一个线程池(并指定线程池的名字) @Bean("AsyncTask") public Executor asyncExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();