SpringBoot series of tutorials (sixty-six): SpringBoot integrates timing tasks Quartz

One, Quartz introduction

Quartz is a powerful task scheduler framework. It is completely written in Java and designed to be used in J2SE and J2EE applications. It can implement more complex scheduling functions, such as execution on the first of every month, early morning execution every day, and weekly Complex scenarios such as five executions, etc., also support distributed scheduling. It provides great flexibility without sacrificing simplicity. You can use it to create simple or complex schedules for executing a job. It has many features, such as: database support, clustering, plug-ins, EJB job pre-build, JavaMail and others, support for cron-like expressions and so on.

1. Installation and Configuration

Official website: http://quartz-scheduler.org/

2. Project screenshot

Two, Quzrtz consists of three elements

Quartz has three important core elements, task scheduler (Scheduler), trigger (Trigger), task (Job).

1. Job和JobDetail

Job represents a task-refers to the specific content to be executed. A job can be associated with multiple triggers, but a trigger can only be associated with one job. this

Guess you like

Origin blog.csdn.net/Thinkingcao/article/details/103490411