Create a Spring MVC project Open spring tool suite File > New > Spring Project > Spring Mvc Project Test whether the project is working, if it's ok you should see a hello page in your browser. Adding Dependency Add following to pom.xml. <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${springframework.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${springframework.version}</version> </dependency> Create the scheduler This is the class you want to schedule. Name it as ScheduledTasks.java and place with homecontroller.java import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.scheduling.anno