diff options
-rw-r--r-- | build.gradle | 10 | ||||
-rw-r--r-- | src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index 9df8dca9..6912647f 100644 --- a/build.gradle +++ b/build.gradle @@ -115,6 +115,16 @@ asciidoctor { } dependencies { + // for Java applications + annotationProcessor "io.micronaut:micronaut-inject-java:1.3.2" + annotationProcessor "io.micronaut:micronaut-validation:1.3.2" + annotationProcessor "io.micronaut.spring:micronaut-spring-annotation:1.0.2" + annotationProcessor "io.micronaut.spring:micronaut-spring-web-annotation:1.0.2" + annotationProcessor "io.micronaut.spring:micronaut-spring-boot:1.0.2" + + // additional Spring Boot dependencies for Micronaut + runtime("io.micronaut.spring:micronaut-spring-boot:1.0.2") + compile "io.micronaut:micronaut-inject:1.3.2" compile ('org.springframework.boot:spring-boot-starter-cache') compile ('org.springframework.boot:spring-boot-starter-security') compile ('org.springframework.boot:spring-boot-starter-jdbc') 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); } |