Spring @Scheduled 任务 参数动态配置

2022年10月14日12:15:49

Spring @Scheduled 任务 参数动态配置 博客分类: java spring

@Scheduled(cron = "0 */60 * * * ?")
	public void execute(){}
final String s = "0/1 * * * * ?";
 @Scheduled(cron = s)
 public void execute(){}

转载于:https://my.oschina.net/xiaominmin/blog/1597310

  • 作者:weixin_34203832
  • 原文链接:https://blog.csdn.net/weixin_34203832/article/details/92521576
    更新时间:2022年10月14日12:15:49 ,共 228 字。