aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-02-24 20:37:28 +0300
committerGravatar Vitaly Takmazov2020-02-24 20:37:28 +0300
commit5c25da83e3f15d0b61dff91af0b0fc9233e87ee6 (patch)
tree112aa0e176b72eb5fb025645f2a0744352e726c7
parentd1589c033ea59aaa991ea4eb48370b3f4dfb72dd (diff)
Fix TaskExecutor configuration
-rw-r--r--src/main/java/com/juick/server/configuration/BaseWebConfiguration.java1
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);
}