@Autowired TaskExecutor threadPoolTaskExecutor;public void testSpringTaskExecutor()throws InterruptedException { for (int k = 0; k < 5;{ new Workflow(new AtomicInteger(k)
在春季引导应用程序(2.1.4-发行版)中,使用以下TaskExecutor配置 @Qualifier("threadPoolTaskExecutor") final ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(ThreadPoolExecutor.java:1054)