springboot 定时任务 cron
时间: 2023-10-15 10:23:42 浏览: 129
springboot 定时任务
Spring Boot定时任务的cron表达式可以写在定时任务的注解@Scheduled中。在Spring Boot中,cron表达式只需要写前6位,分别代表秒、分、小时、天、月、星期。例如,"0 0/5 * * * ?"表示每5分钟触发一次定时任务。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [spring boot 定时任务的实现以及cron定时表达式](https://blog.csdn.net/u011066470/article/details/107529863)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [springboot中cron定时任务](https://blog.csdn.net/qq_43241977/article/details/116208630)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文