package google.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.TaskExecutor;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

@Configuration
public class ExecutorConfig {

	@Bean
	public TaskExecutor taskExecutor() {
		ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
		executor.setCorePoolSize(4);
		executor.setMaxPoolSize(4);
		executor.setThreadNamePrefix("result_task_executor_thread");
		executor.initialize();
		return executor;
	}

}

@@ -134,59 +134,8 @@
 on;%0A
-import org.springframework.core.task.TaskExecutor;%0A
 impo
@@ -265,16 +265,26 @@
 %09public 
+ThreadPool
 TaskExec

Switch to ThreadPoolTaskExecutor.