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

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
This commit is contained in:
panos-kakos 2023-01-16 17:48:20 +00:00 committed by GitHub
parent c217f7e95c
commit b90386e8d4

View File

@ -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