From 5c25da83e3f15d0b61dff91af0b0fc9233e87ee6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 24 Feb 2020 20:37:28 +0300 Subject: Fix TaskExecutor configuration --- src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java index 887f15c9..5a3b06ff 100644 --- a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java +++ b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java @@ -60,6 +60,7 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu public void configureTasks(@Nonnull ScheduledTaskRegistrar taskRegistrar) { taskRegistrar.setScheduler(taskExecutor()); } + @Bean public Executor taskExecutor() { return Executors.newScheduledThreadPool(100); } -- cgit v1.2.3