[JAVA-17295] Create and initialize ThreadPoolTaskExecutor (#13249)

Co-authored-by: panagiotiskakos <[email protected]>
This commit is contained in:
panos-kakos
2023-01-16 23:18:20 +05:30
committed by GitHub
co-authored by panagiotiskakos
parent c217f7e95c
commit b90386e8d4
@@ -24,7 +24,9 @@ public class SpringAsyncConfig implements AsyncConfigurer {
@Override
public Executor getAsyncExecutor() {
return new SimpleAsyncTaskExecutor();
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
threadPoolTaskExecutor.initialize();
return threadPoolTaskExecutor;
}
@Override