DynamicSchedule:定时器,自定义corn表达式,动态配置Spring定时器执行。支持添加定时任务、取消定时任务、重置定时任务执行时间

上传者: 42113552 | 上传时间: 2023-02-08 16:51:18 | 文件大小: 34KB | 文件类型: ZIP
DynamicSchedule 动态配置Spring定时器 添加定时任务:/scheduled/add-task 前端传递任务ID,cron表达式、待执行类路径、待执行方法名。 修改定时任务:/scheduled/update-task 前端传递任务ID,cron表达式、待执行类路径、待执行方法名可以修改定时任务内容。 获取单个定时任务:/scheduled/get-task 前端传递任务ID即可获取。 获取定时任务列表:/scheduled/list-task 调用即可获取。 取消定时任务:/scheduled/cancel-task 前端传递任务ID即可取消任务。 手动执行一次定时任务:/scheduled/manual-task 前端传递任务ID即可手动执行一次任务。 开始执行定时任务:/scheduled/execute-task 前端传递任务ID即可按照cron表达式开始任务。

文件下载

资源详情

[{"title":"( 33 个子文件 34KB ) DynamicSchedule:定时器,自定义corn表达式,动态配置Spring定时器执行。支持添加定时任务、取消定时任务、重置定时任务执行时间","children":[{"title":"DynamicSchedule-master","children":[{"title":"src","children":[{"title":"main","children":[{"title":"resources","children":[{"title":"jdbc.properties <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"logback.xml <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"dynamic","children":[{"title":"moduler","children":[{"title":"entity","children":[{"title":"TaskScheduleEntity.java <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"dao","children":[{"title":"TaskScheduleDao.java <span style='color:#111;'> 4.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"controller","children":[{"title":"SchedulerController.java <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"ITaskScheduleService.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"imp","children":[{"title":"TaskScheduleServiceImpl.java <span style='color:#111;'> 6.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"vo","children":[{"title":"TaskScheduleVo.java <span style='color:#111;'> 538B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"handler","children":[{"title":"DynamicSchedulingHandler.java <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"customer","children":[{"title":"CustomerMethod2.java <span style='color:#111;'> 282B </span>","children":null,"spread":false},{"title":"CustomerMethod.java <span style='color:#111;'> 570B </span>","children":null,"spread":false}],"spread":true},{"title":"constans","children":[{"title":"TaskStatusConstants.java <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"SpringScheduleConstants.java <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"TaskCronConstants.java <span style='color:#111;'> 781B </span>","children":null,"spread":false}],"spread":true},{"title":"util","children":[{"title":"JsonKit.java <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"JsonResult.java <span style='color:#111;'> 366B </span>","children":null,"spread":false},{"title":"BeanUtils.java <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"HttpStatus.java <span style='color:#111;'> 338B </span>","children":null,"spread":false},{"title":"JsonResultObject.java <span style='color:#111;'> 221B </span>","children":null,"spread":false},{"title":"ScheduleUtils.java <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"listener","children":[{"title":"ScheduleListener.java <span style='color:#111;'> 807B </span>","children":null,"spread":false}],"spread":true},{"title":"SpringWebConfig.java <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"druid","children":[{"title":"DruidAspectConfig.java <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"DruidConfig.java <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false}],"spread":false},{"title":"DynamicScheduledConfig.java <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"DataSourceConfig.java <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"InitBean.java <span style='color:#111;'> 466B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"database","children":[{"title":"p_task_schedule.sql <span style='color:#111;'> 918B </span>","children":null,"spread":false}],"spread":true},{"title":"webapp","children":[{"title":"index.jsp <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"dynamic","children":[{"title":"util","children":[{"title":"JsonKitTest.java <span style='color:#111;'> 737B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 5.89KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 976B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明