From d1589c033ea59aaa991ea4eb48370b3f4dfb72dd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 24 Feb 2020 20:17:28 +0300 Subject: Using micronaut annotation processors to AOT compilation This speeds up startup time from 10-15 to 4-5 seconds --- src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/main') 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); } -- cgit v1.2.3