From 1913e1e7f95a2d2b4bc52615a7380fce1a52e6be Mon Sep 17 00:00:00 2001 From: FWinkler79 <52044081+FWinkler79@users.noreply.github.com> Date: Tue, 9 Jun 2020 10:31:49 +0200 Subject: [PATCH] Added missing `@EnableTask` annotation Following the documentation (using Spring Boot 2.3.0 and Spring Cloud Hoxton.SR5) does not yield the described output if that annotation is missing. I saw it being used in several videos of M. Minella, so I think it is a glitch. Adding the annotation to my code showed the log output where `TaskExecution` is created and updated in the repository. Without the annotation that does not show (and probably does not happen either). --- spring-cloud-task-docs/src/main/asciidoc/getting-started.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-cloud-task-docs/src/main/asciidoc/getting-started.adoc b/spring-cloud-task-docs/src/main/asciidoc/getting-started.adoc index d33cd4d7..2561ac48 100755 --- a/spring-cloud-task-docs/src/main/asciidoc/getting-started.adoc +++ b/spring-cloud-task-docs/src/main/asciidoc/getting-started.adoc @@ -80,6 +80,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication +@EnableTask public class HelloworldApplication { @Bean