82
社区成员




{秒数} {分钟} {小时} {日期} {月份} {星期} {年份(可为空)}
- @RestController
- @EnableScheduling
- public class MyController {
- @Scheduled(cron = "1/10 * * * * ? ") //10s一次
- public void learn(){
- System.out.println("hello world");
- }
- }
在线生成 cron 语句的网站:
https://www.bejson.com/othertools/cron/
学习更多编程知识,请关注我的公众号: