Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luomu32/quartz-spring-boot-starter

easy way to use quartz with spring boot
https://github.com/luomu32/quartz-spring-boot-starter

quartz quartz-scheduler spring-boot

Last synced: about 1 month ago
JSON representation

easy way to use quartz with spring boot

Awesome Lists containing this project

README

        

# Spring Boot Quartz Integration Extension
![Maven Central](https://img.shields.io/maven-central/v/xyz.luomu32/quartz-spring-boot-starter.svg)

this extension base on spring boot quartz autoconfiguration.so make sure add spring boot dependency into your project first.
## Example
base on CronTrigger,will be executed by every minute.
```java
@SchedulerJob(cron = "0 0/1 * * * ?")
public class FooJob implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
//do some logic...
}
}
```
base on SimpleTrigger,will be executed 10 times and each time interval 20 second.
```java
@SchedulerJob(repeatCount = 10,interval = 20000)
public class FooJob implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
//do some logic...
}
}
```
## Requirements
- Java 6+
- Spring Boot 2.0.0+
- Quartz 2.3.0+