Skip to content

Commit 1913e1e

Browse files
FWinkler79cppwfs
authored andcommitted
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).
1 parent 95a2683 commit 1913e1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-cloud-task-docs/src/main/asciidoc/getting-started.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
8080
import org.springframework.context.annotation.Bean;
8181
8282
@SpringBootApplication
83+
@EnableTask
8384
public class HelloworldApplication {
8485
8586
@Bean

0 commit comments

Comments
 (0)