aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-02-24 20:17:28 +0300
committerGravatar Vitaly Takmazov2020-02-24 20:17:28 +0300
commitd1589c033ea59aaa991ea4eb48370b3f4dfb72dd (patch)
tree06d87726dd4799f810aba4b753a23473da3ff65f /src/main/java/com/juick
parente699f116e9fbcc6577640055e17dd5d3437a3703 (diff)
Using micronaut annotation processors to AOT compilation
This speeds up startup time from 10-15 to 4-5 seconds
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/configuration/BaseWebConfiguration.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
index a05b4fc1..887f15c9 100644
--- a/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
+++ b/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
@@ -60,8 +60,6 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu
public void configureTasks(@Nonnull ScheduledTaskRegistrar taskRegistrar) {
taskRegistrar.setScheduler(taskExecutor());
}
-
- @Bean(destroyMethod="shutdown")
public Executor taskExecutor() {
return Executors.newScheduledThreadPool(100);
}