File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
core/core-api/src/main/java/io/dodn/springboot/core/api/config Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11package io .dodn .springboot .core .api .config ;
22
33import org .springframework .aop .interceptor .AsyncUncaughtExceptionHandler ;
4+ import org .springframework .context .annotation .Bean ;
45import org .springframework .context .annotation .Configuration ;
56import org .springframework .scheduling .annotation .AsyncConfigurer ;
67import org .springframework .scheduling .annotation .EnableAsync ;
1213@ EnableAsync
1314public class AsyncConfig implements AsyncConfigurer {
1415
16+ @ Bean
1517 @ Override
1618 public Executor getAsyncExecutor () {
1719 ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor ();
@@ -20,7 +22,6 @@ public Executor getAsyncExecutor() {
2022 executor .setQueueCapacity (10000 );
2123 executor .setWaitForTasksToCompleteOnShutdown (true );
2224 executor .setAwaitTerminationSeconds (10 );
23- executor .initialize ();
2425 return executor ;
2526 }
2627
You can’t perform that action at this time.
0 commit comments