spring Task Execution and Scheduling Enable Scheduling


Example

Spring provides a useful task scheduling support. To enable it, just annotate any of your @Configuration classes with @EnableScheduling:

 @Configuration
 @EnableScheduling
 public class MyConfig {

     // Here it goes your configuration
 }