10--deep use of spring--5...1 using quartz

Source: Internet
Author: User

10.5.1 using Quartz

The JDK provides timer support for simple task scheduling.

Quartz is a task scheduling framework. With cron expressions, quartz can support a variety of complex task scheduling.

1. Download and install Quartz

⊙docs: Documents related to quartz, including APIs.

⊙examples: The sample program that holds the quartz.

⊙javadoc: Store Quartz API documentation.

⊙lib: The jar package that holds quartz, and the third-party class library on which quartz compiles or runs.

⊙SRC: The source file that holds the quartz.

⊙ other Quartz related documents.

Tip: Actually quartz still uses slf4j as the logging tool, so you also need to copy the SLF4J-related jar package from the lib/subdirectory into the project's class load path.

Basic Properties for 2.Quartz operation

Quartz allows you to provide a configuration file named Quartz.properties that allows you to modify the environment in which the framework runs. The quartz.properties file in Quartz-x.x.x.jar is used by default (under the Org\quartz path of the compressed file). If you need to change the default Quartz property, the program can create a quartz.properties file on its own and place it under the class load path of the system, and ClassLoader will automatically load and enable the various properties.

Properties:quartz

10--deep use of spring--5...1 using quartz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.