Spring, Spring Boot, Spring Framework, Java, Programming.
@Configuration @EnableAsync public class AsyncConfig { @Bean(name = "jobExecutor") public Executor jobExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(10); executor.setMaxPoolSize(20); executor.setQueueCapacity(30);