2015-10-06 08:26:47 -04:00
|
|
|
=========================================================================
|
2015-09-30 14:00:45 -04:00
|
|
|
|
|
|
|
## Scheduling in Spring with Quartz Example Project
|
2015-10-06 08:26:47 -04:00
|
|
|
This is the first example where we configure a basic scheduler.
|
|
|
|
##### Spring boot application, Main class
|
|
|
|
###
|
|
|
|
```
|
|
|
|
org.baeldung.springquartz.SpringQuartzApp
|
|
|
|
```
|
|
|
|
######
|
2015-09-30 14:00:45 -04:00
|
|
|
|
2015-10-06 08:26:47 -04:00
|
|
|
##### Configuration in *application.properties*
|
|
|
|
####
|
|
|
|
|
|
|
|
- Default: configures scheduler using Spring convenience classes:
|
|
|
|
```
|
|
|
|
using.spring.schedulerFactory=true
|
|
|
|
```
|
|
|
|
- To configure scheduler using Quartz API:
|
|
|
|
```
|
|
|
|
using.spring.schedulerFactory=false
|
2018-05-02 03:41:09 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
### Relevant Articles:
|
|
|
|
- [Scheduling in Spring with Quartz](http://www.baeldung.com/spring-quartz-schedule)
|
|
|
|
|