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