<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"xmlns:context="http://www.springframework.org/schema/context"xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"xmlns:mvc="http://www.springframework.org/schema/mvc"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-4.1.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-4.1.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-4.1.xsdhttp://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc-4.1.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-4.1.xsd"><!-- 启动触发器的配置开始 --><bean name="startQuertz" lazy-init="false" autowire="no"class="org.springframework.scheduling.quartz.SchedulerFactoryBean"><property name="triggers"><list><ref bean="datFaultTrigger"/></list></property></bean><!-- 启动触发器的配置结束 --><!-- 调度的配置开始 --><bean id="datFaultTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"><property name="jobDetail"><ref bean="datFualtDetail"/></property><property name="cronExpression"><value>0/30 * * * * ?</value></property></bean><!-- 调度的配置结束 --><!-- "0/30 * * * * ?" 每30秒触发一次 "0 0 12 * * ?" 每天中午12点触发 "0 15 10 ? * *" 每天上午10:15触发"0 15 10 * * ?" 每天上午10:15触发 "0 15 10 * * ? *" 每天上午10:15触发 "0 15 10 * * ? 2005" 2005年的每天上午10:15触发 "0 * 14 * * ?" 在每天下午2点到下午2:59期间的每1分钟触发 "0 0/5 14 * * ?" 在每天下午2点到下午2:55期间的每5分钟触发 "0 0/5 14,18 * * ?" 在每天下午2点到2:55期间和下午6点到6:55期间的每5分钟触发 "0 0-5 14 * * ?" 在每天下午2点到下午2:05期间的每1分钟触发 "0 10,44 14 ? 3 WED" 每年三月的星期三的下午2:10和2:44触发 "0 15 10 ? * MON-FRI" 周一至周五的上午10:15触发 "0 15 10 15 * ?" 每月15日上午10:15触发 "0 15 10 L * ?" 每月最后一日的上午10:15触发 "0 15 10 ? * 6L" 每月的最后一个星期五上午10:15触发 "0 15 10 ? * 6L 2002-2005" 2002年至2005年的每月的最后一个星期五上午10:15触发 "0 15 10 ? * 6#3" 每月的第三个星期五上午10:15触发 --><!-- job的配置开始 --><!-- myJob是MyQuartzJob里的定时任务方法 --><bean id="datFualtDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><property name="targetObject"><ref bean="datFaultJob"/></property><property name="targetMethod"><value>myJob</value></property></bean><!-- job的配置结束 --><!-- 工作的bean --><bean id="datFaultJob" class="com.b2byw.ywy.manage.utils.MyQuartzJob"/>
</beans>

quartz定时任务配置相关推荐

  1. spring + Quartz定时任务配置

    <bean id="exportBatchFileTask" class="com.ydcn.pts.task.ExportBatchFileTask"& ...

  2. spring+quartz定时任务配置---MethodInvokingJobDetailFactoryBean

    实现定时任务有两种方式: jobDetail -JobDetailBean jobDetail -MethodInvokingJobDetailFactoryBean 这里呢先讲的是MethodInv ...

  3. java jobdetail_spring+quartz定时任务配置---JobDetailBean

    之前有写过通过MethodInvokingJobDetailFactoryBean来实现定时任务 还有一种方式是JobDetailBean来实现定时任务 下面来看怎么配置 1.application. ...

  4. Spring Boot配置Quartz定时任务

    1 Quartz定时任务 Quartz 是一个完全由 Java 编写的开源任务调度框架,为在 Java 应用程序中进行任务调度提供了简单却强大的机制. 基于定时.定期的策略来执行任务是它的核心功能,比 ...

  5. Springboot集成quartz定时任务可视化配置​​​​​​​

    转自我的个人博客:Springboot集成quartz定时任务可视化配置 使用quartz定时任务已经有一段时间了,今天记录一下Springboot 2.x集成Quartz. 1.引入quartz j ...

  6. Springboot集成Quartz定时任务yml文件配置方式

    构建maven项目,引入maven依赖包 其中quartz.quartz-jobs.spring-boot-starter-quartz.spring-context-support  四个依赖包为q ...

  7. Quartz——Spring定时任务配置

    刚来公司,听说用到了很多的定时任务,于是自己偷偷实现了一个小例子,感觉还不错.万一哪天交给我一个定时任务也好直接上手敲代码呀. 配置步骤 Spring的定时任务配置分为三个步骤: 1.定义任务 2.任 ...

  8. @scheduled注解配置时间_探究 Spring 的定时任务配置

    作者 | 郭朝兴 责编 | Elle 最近在项目开发中进行了一些Spring定时任务的开发工作,在开发过程中对Spring定时任务的配置方式进行了一些研究,现在对各种配置方式进行一个总结.Schedu ...

  9. SpringBoot2.0新特性 - Quartz自动化配置集成

    https://www.jianshu.com/p/056281e057b3 在新版本的SpringBoot2.0发布后,急迫尝鲜的我将相关的项目已经更换为最新版本,在SpringBoot源码GitH ...

  10. 大数据互联网架构阶段 QuartZ定时任务+RabbitMQ消息队列

    QuartZ定时任务+RabbitMQ消息队列 一 .QuartZ定时任务解决订单系统遗留问题 情景分析: 在电商项目中 , 订单生成后 , 数据库商品数量-1 , 但是用户迟迟不进行支付操作 , 这 ...

最新文章

  1. [HTTP协议]基础篇-待完结
  2. SunPower光伏组件出货量提高
  3. Knockout中ViewModel与Model的互转
  4. 车智汇模式系统技术开发数据
  5. 结构与算法(03):单向链表和双向链表
  6. 梯度下降法快速教程 | 第三章:学习率衰减因子(decay)的原理与Python实现
  7. django mac 安装mysql_mac安装MySQL-Python报错
  8. H.264笔记之三——环路内滤波
  9. Unix/Linux/BSD命令大全|实用指南
  10. 闲人闲谈PS之九——项目定义及WBS结构设计
  11. 纯前端集成视频会议和聊天室
  12. 计算机sci检索,SCI/EI检索的国内计算机期刊
  13. Cubase10.5稳定版安装包+安装教程
  14. CHAP7 软件项目进度计划
  15. 基于PCIe的通用信号处理板PCIe-KU040-FMC
  16. java中文分词的简单实现
  17. python array类型取特定值
  18. 基于ssm+vue的师生防疫登记管理系统 elementui
  19. 电脑 | 更新后显示器无法实现夜间模式
  20. getaddrinfo神秘面纱

热门文章

  1. 微信小程序tabBer图标大小如何自定义
  2. 材料力学考研可以用计算机吗,2020海南大学材料力学专业超详细考研经验分享...
  3. 图书馆管理系统前端ajax接口,基于AJAX的图书馆管理系统的设计与实现
  4. Padavan启用ipv6并允许公网访问内网
  5. 《微波工程》阅读杂记一
  6. CUDA C 编程/Nsight可视化
  7. 【Pygame实战】怀旧经典—这款给娃的棋类游戏,你还记得叫什么吧?(一定要收藏)
  8. 2019年美赛C题思路详解
  9. mysql sjis 校对乱码_mysql 解决中文乱码问题
  10. 把图片url 伪静态 php,php url伪静态化的实现方法详解