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-issuemaster opened this Issue Apr 7, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

spring-issuemaster 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-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

spring-issuemaster 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