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
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