quartz
是使用了scheduler中函数:
shutdown() 后再使用
start() 启动的原因。
而使用standby
The scheduler is not destroyed, and can be re-started at any time.
解决办法:
scheduler中函数:
standby()
start()
是使用了scheduler中函数:
shutdown() 后再使用
start() 启动的原因。
而使用standby
The scheduler is not destroyed, and can be re-started at any time.
解决办法:
scheduler中函数:
standby()
start()
本文探讨了在使用Quartz调度器时遇到的问题,特别是关于如何正确地在运行(start)、停止(shutdown)和待机(standby)状态之间进行切换。通过standby()而不是shutdown()来暂停调度器,可以确保其不被销毁,并能够在任何时候重新启动。
9906





