Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/luomu32/quartz-spring-boot-starter
- Owner: luomu32
- License: apache-2.0
- Created: 2019-05-18T08:20:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T13:05:22.000Z (over 5 years ago)
- Last Synced: 2023-07-07T15:38:54.114Z (over 1 year ago)
- Topics: quartz, quartz-scheduler, spring-boot
- Language: Java
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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+