Spring provides a useful task scheduling support. To enable it, just annotate any of your @Configuration classes with @EnableScheduling:
@Configuration
@EnableScheduling
@Configuration @EnableScheduling public class MyConfig { // Here it goes your configuration }