简体   繁体   中英

Scheduling tasks in Java/Spring

There is a requirement in the project that will have a scheduled task that will do some job.

The project is Spring based and the scheduled job will be part of the application war.I have never implemented this kind of functionality before.

I have heard of Quartz. Also, I read somewhere that Spring provides some functionality to schedule tasks. So, I was thinking if I am already using Spring then why to go for some other API(Quartz).

I am not sure which one to use? what will be the pros/cons of one over another?

Please suggest what will be the best way to approach my requirement.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM