From 5ab88b2344defff9c68cb7f470512505abf3d4cc Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 20 Mar 2014 16:30:34 -0700 Subject: [PATCH] Automatically add schedule annotation imports --- .../autoconfigure/SpringBootCompilerAutoConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringBootCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringBootCompilerAutoConfiguration.java index c7298a13d1a..d7d95106208 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringBootCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringBootCompilerAutoConfiguration.java @@ -64,7 +64,8 @@ public class SpringBootCompilerAutoConfiguration extends CompilerAutoConfigurati "org.springframework.core.io.ResourceLoader", "org.springframework.boot.CommandLineRunner", "org.springframework.boot.autoconfigure.EnableAutoConfiguration"); - imports.addStarImports("org.springframework.stereotype"); + imports.addStarImports("org.springframework.stereotype", + "org.springframework.scheduling.annotation"); } @Override