Learn how to schedule tasks with Spring Boot -
https://www.callicoder.com/spring-boot-task-scheduling-with-scheduled-annotation/
-
Java - 11
-
Maven - 3.x.x
1. Clone the application
git clone https://github.com/callicoder/spring-boot-scheduler-example.git
2. Build and run the app using maven
cd spring-boot-scheduler-example
mvn package
java -jar target/scheduler-demo-0.0.1-SNAPSHOT.jar
You can also run the app without packaging it using -
mvn spring-boot:run