mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
d689ef8891
Prior to this commit, support was provided for disabling cron jobs configured with an explicit "-" cron expression. However, the "-" expression was only supported when supplied via the @Scheduled annotation. This commit adds support for disabling cron jobs configured with the "-" cron expression when a cron job is registered via the addCronTask(Runnable, String) method in the ScheduledTaskRegistrar supplied to a SchedulingConfigurer. Closes gh-23568