Posts

Showing posts with the label Spring Boot Examples

Spring Boot + Thymeleaf + Spring Data JPA CRUD Example

Image
Hello everyone, In this post we will learn how to develop a  CRUD web application, using Spring Boot, Thymeleaf, Spring Data JPA and H2 Database. Technologies Used: Java 17 Spring Boot 2.7.0 Spring Data JPA Thymeleaf template engine Maven 3+ Bootstrap 4 H2 Database Project Directory: Pom.xml <? xml version ="1.0" encoding ="UTF-8" ?> < project xmlns ="http://maven.apache.org/POM/4.0.0" xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation ="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" > < modelVersion >4.0.0</ modelVersion > < parent > < groupId >org.springframework.boot</ groupId > < artifactId >spring-boot-starter-parent</ artifactId > < version >2.7.0</ version > < relativePath /> </ parent > < artifactId >springboot-thymeleaf-jpa-crud</ artifactId

Quartz with Spring Boot, Quartz JobListener Example - How to keep track the status of the running job?

Image
Hello everyone, today we will show you how to configure Quartz with Spring Boot and how to keep track the status of the running job. Tech stack Spring Boot 2.6.7 Java 17 Quartz Scheduler Quartz JobListener RAMJobStore for persisting quartz job. Maven Quartz is a richly featured, open-source job scheduling library that can be integrated within virtually any Java application - from the smallest stand-alone application to the largest e-commerce system.  Listeners are objects that you create to perform actions based on events occurring within the scheduler. As you can probably guess, TriggerListeners receive events related to triggers, and JobListeners receive events related to jobs. RAMJobStore is the simplest JobStore to use. It keeps all of its data in RAM. Final Project Directory: Maven[pom.xml] <?xml version = "1.0" encoding = "UTF-8" ?> <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchem