Verifying a cron expression is valid in Java

前端 未结 6 1344
梦谈多话
梦谈多话 2020-12-15 03:08

I\'m writing a scheduling application in Java using Quartz. I\'m using the CronTrigger, but my cron expressions are entered into a database before they are scheduled and are

6条回答
  •  我在风中等你
    2020-12-15 04:06

    you can also use org.springframework.scheduling.support.CronSequenceGenerator.isValidExpression(@Nullable String expression) method if you have not org.quartz package.

提交回复
热议问题