小编Rah*_*Das的帖子

在 spring @Schedule 注释中使用 cron 表达式时如何给出初始延迟为 0?

我正在尝试在应用程序启动时启动我的 schedule 方法。该方法将每周运行一次。所以我必须使用cron表达式。你们能帮我如何在 cron 表达式中给出初始延迟 =0 以便它在应用程序启动时运行。

spring scheduled-tasks spring-boot

1
推荐指数
1
解决办法
1958
查看次数

标签 统计

scheduled-tasks ×1

spring ×1

spring-boot ×1