Spring @Scheduled 任务 参数动态配置

34次阅读
没有评论

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

正文完
 0