Skip to main content

Posts

Showing posts with the label springboot

Quartz Scheduler with SpringBoot

In the previous post,  Quartz Scheduler Introduction  we learned the basics of the Quartz subsystem with plain java. In this post, We will use spring boot magic to create an application with Quartz. This application will have the following. An endpoint, to show current items in the system. A quartz job, to keep adding a new item at a regular interval. Before we start with quartz, let's do some basic SpringBoot setup 1. Maven Project: Create a maven project the way you like, Either by using your favorite IDE or by command line or by  spring-starter .   just keep the name of your project as  QuartzSpringApplication  If you do not want to modify any code provided in this article After that add the following dependencies in your pom.xml.  Lombok  is not needed, but I like to use it everywhere. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webflux</artifactId> </dep...