Spring Boot - Async Processing
What is wrong with this custom thread pool configuration in Spring Boot?
@Bean
public ThreadPoolTaskExecutor taskExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(5);
executor.setMaxPoolSize(3);
executor.setQueueCapacity(10);
executor.initialize();
return executor;
}