# springboot-schedule **Repository Path**: zrb666/springboot-schedule ## Basic Information - **Project Name**: springboot-schedule - **Description**: Springboot2【@scheduled定时器】 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 需求背景 日常项目开发中,我们经常会遇到以下几种特定需求: 1. 一些事情,需要在指定时间执行 2. 一些事情,需要在指定时间执行后,再间隔指定时间重复执行 3. 一些事情,需要在启动任务之后,隔多久才执行 Springboot2中提供了@Scheduled注解,可以定时执行,比如定时检查某些功能是否正常,或定时备份某份数据等,它可以帮你完成这些定时操作。 技术点 主要使用了两个注解 1. @EnableScheduling 配置在启动类入口,用于开启定时功能 2. @Scheduled 用于配置具体某个任务的执行时间点,实现某个特定功能 案例说明 场景案例分析: 1. 定时器计划用法介绍 2. 开启并行多线程任务两种方式 3. 场景案例分析