diff options
author | Vitaly Takmazov | 2020-02-24 20:37:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-02-24 20:37:28 +0300 |
commit | 5c25da83e3f15d0b61dff91af0b0fc9233e87ee6 (patch) | |
tree | 112aa0e176b72eb5fb025645f2a0744352e726c7 | |
parent | d1589c033ea59aaa991ea4eb48370b3f4dfb72dd (diff) |
Fix TaskExecutor configuration
-rw-r--r-- | src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |