dynamic-schedule:springboot 动态定时任务

上传者: 42116805 | 上传时间: 2023-02-08 16:33:24 | 文件大小: 73KB | 文件类型: ZIP
写在前面:本文采取的环境 1.docker下的mysql (对于用户使用的数据库版本 请引用对应的数据库驱动版本),2.springboot(该demo采用mysql数据库,druid连接池,mybatis持久层) 项目地址: 码云: github: 前端配套界面: 更新日志: 1.加入定时器 给定时间 得出下次执行时间点 参照 第一步 MySQL环境准备(可跳过) 1.在centos窗口中,拉取mysql镜像,并且创建该容器: docker pull mysql:5.7 docker run --name test-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 注:等容器启动成功后,读者可以尝试用Navicat连接 :账号root, 密码123456. 2.数据库表准备,以及测试数据 本人创建了名为test

文件下载

资源详情

[{"title":"( 48 个子文件 73KB ) dynamic-schedule:springboot 动态定时任务","children":[{"title":"dynamic-schedule-master","children":[{"title":".gitattributes <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"dynamicschedule","children":[{"title":"DynamicScheduleApplicationTests.java <span style='color:#111;'> 363B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"generator","children":[{"title":"mybatis_generator_config.xml <span style='color:#111;'> 8.56KB </span>","children":null,"spread":false},{"title":"generator.properties <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"mappers","children":[{"title":"ScheduleJobMapper.xml <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"ScheduleJobLogMapper.xml <span style='color:#111;'> 9.88KB </span>","children":null,"spread":false},{"title":"ScheduleJobExtandMapper.xml <span style='color:#111;'> 757B </span>","children":null,"spread":false}],"spread":true},{"title":"application.properties <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"mybatis-config.xml <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"test.sql <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"dynamicschedule","children":[{"title":"DynamicScheduleApplication.java <span style='color:#111;'> 462B </span>","children":null,"spread":false},{"title":"service","children":[{"title":"ScheduleJobService.java <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"ScheduleJobLogService.java <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"ScheduleJobLogServiceImpl.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"ScheduleJobServiceImpl.java <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"pojo","children":[{"title":"TimeOfDay.java <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"CronField.java <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"CronPosition.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"DayOfYear.java <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"CronUtil.java <span style='color:#111;'> 12.10KB </span>","children":null,"spread":false},{"title":"CompareUtil.java <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"ScheduleRunnable.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"ResultUtils.java <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"ScheduleJobUtils.java <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"ScheduleUtils.java <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"SpringContextUtils.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"DateUtil.java <span style='color:#111;'> 5.72KB </span>","children":null,"spread":false},{"title":"CronShapingUtil.java <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"controller","children":[{"title":"ScheduleJobController.java <span style='color:#111;'> 5.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"base","children":[{"title":"Constant.java <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"ResultCode.java <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":"ResultDTO.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"exception","children":[{"title":"GenericException.java <span style='color:#111;'> 837B </span>","children":null,"spread":false},{"title":"GenericExceptionHandler.java <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"dao","children":[{"title":"ScheduleJobMapper.java <span style='color:#111;'> 943B </span>","children":null,"spread":false},{"title":"ScheduleJobExtandMapper.java <span style='color:#111;'> 282B </span>","children":null,"spread":false},{"title":"ScheduleJobLogMapper.java <span style='color:#111;'> 991B </span>","children":null,"spread":false}],"spread":false},{"title":"parser","children":[{"title":"CronParser.java <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"DayBasedCronParser.java <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false}],"spread":false},{"title":"bean","children":[{"title":"ScheduleJobExample.java <span style='color:#111;'> 22.75KB </span>","children":null,"spread":false},{"title":"ScheduleJobLog.java <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"ScheduleJob.java <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"ScheduleJobLogExample.java <span style='color:#111;'> 23.94KB </span>","children":null,"spread":false}],"spread":false},{"title":"task","children":[{"title":"TestTask.java <span style='color:#111;'> 596B </span>","children":null,"spread":false},{"title":"TestInterfaceTask.java <span style='color:#111;'> 292B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 85.57KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 268B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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