Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation example miss @EnableScheduling [SPR-10448] #15081

Closed
spring-projects-issues opened this issue Apr 7, 2013 · 1 comment
Closed
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 7, 2013

Janning Vygen opened SPR-10448 and commented

Doc say

"Alternatively, if MyTask were annotated with @Component, the following configuration would ensure that its @Scheduled method is invoked at the desired interval:

@Configuration
@ComponentScan(basePackages="com.myco.tasks")
public class AppConfig {
}
"

The code example is wrong as it does not use @EnableScheduling. It must be like this:

@Configuration
@EnableScheduling
@ComponentScan(basePackages="com.myco.tasks")
public class AppConfig {
}


Affects: 3.2.2

Reference URL: http://static.springsource.org/spring/docs/4.0.0.BUILD-SNAPSHOT/javadoc-api/org/springframework/scheduling/annotation/EnableScheduling.html

Referenced from: commits 7ba67cc, 37735b3

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Oct 22, 2015

Stéphane Nicoll commented

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

2 participants