springboot定时器任务

1.新建

2.

3.

 4.启动,在类中右键-->RunAs-->SpringBoot App,一切正常就会看到如下结果

原文地址:https://www.cnblogs.com/lpzpp/p/11283932.html