Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aminbhst/quartz-auto-config-boot
Get started with Quartz scheduler in Spring Boot using a single annotation
https://github.com/aminbhst/quartz-auto-config-boot
quartz quartz-scheduler spring-boot
Last synced: about 1 month ago
JSON representation
Get started with Quartz scheduler in Spring Boot using a single annotation
- Host: GitHub
- URL: https://github.com/aminbhst/quartz-auto-config-boot
- Owner: AminBhst
- License: mit
- Created: 2022-07-10T17:56:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T15:56:50.000Z (about 2 years ago)
- Last Synced: 2024-12-07T01:18:05.642Z (about 1 month ago)
- Topics: quartz, quartz-scheduler, spring-boot
- Language: Java
- Homepage:
- Size: 29.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![license](https://img.shields.io/github/license/aminbhst/quartz-autoconfig-boot)](https://github.com/AminBhst/quartz-autoconfig-boot/blob/main/LICENSE.md)
[![release](https://img.shields.io/github/v/release/aminbhst/quartz-auto-config-boot)](https://github.com/aminbhst/quartz-auto-config-boot/releases)## Usage Guide
#### Annotate your SpringBootApplication Class with `@EnableQuartzConfiguration`
```java
@SpringBootApplication
@EnableQuartzConfiguration
public class TestApplication {public static void main(String[] args) {
SpringApplication.run(TestApplication.class, args);
}
}
```#### Annotate your job classes with `@QuartzJob` and provide either the `cron` or the `repeatInterval` property
```java
@QuartzJob(cron = "0 0/1 * * * ?")
public class TestJob implements Job {@Override
public void execute(JobExecutionContext jobExecutionContext) {
System.out.println("Running Job every minute");
}
}
```## Get Quartz Auto Config Boot
#### You can add Quartz AutoConfig to your project as a maven dependency
#### It is distributed through [Maven Central](https://search.maven.org/artifact/io.github.aminbhst/quartz-auto-config-boot)
### Apache Maven
```xml
io.github.aminbhst
quartz-auto-config-boot
1.0.0
compile```
### Gradle
```groovy
dependencies {
compileOnly 'io.github.aminbhst:quartz-auto-config-boot:1.0.0'
annotationProcessor 'io.github.aminbhst:quartz-auto-config-boot:1.0.0'
}
```