java定时器Scheduled,可动态设置定时器执行时间
java定时器任务,可动态设置定时器执行时间,无延时
@Component
@EnableScheduling
public class DayTimerTask implements SchedulingConfigurer {
private final static Logger logger = LoggerFactory.getLogger(DayTimerTask.class);
//动态设置定时器执行时间
@Autowired
private TimerConfi
原创
2021-09-10 11:41:51 ·
5993 阅读 ·
1 评论