Spring配置定时器的xml文件
来源:互联网 发布:奥数中最优化方法 编辑:程序博客网 时间:2024/04/29 22:37
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><!-- cronExpression 运行时间设置 每天12点运行: 0 0 12 * * ? 每天10:15运行: 0 15 10 ? * * 或0 15 10 * * ? 或 0 15 10 * * ? *在2010年的每天10:15运行: 0 15 10 * * ? 2010每天14点到15点之间每分钟运行一次,开始于14:00,结束于14:59 : 0 * 14 * * ?每天14点到15点每5分钟运行一次,开始于14:00,结束于14:55: 0 0/5 14 * * ? 每天14点到15点每5分钟运行一次,此外每天18点到19点每5钟也运行一次: 0 0/5 14,18 * * ?每天14:00点到14:05,每分钟运行一次: 0 0-5 14 * * ?3月每周三的14:10分到14:44,每分钟运行一次: 0 10,44 14 ? 3 WED每周一,二,三,四,五的10:15分运行: 0 15 10 ? * MON-FRI每月15日10:15分运行: 0 15 10 15 * ?每月最后一天10:15分运行: 0 15 10 L * ?每月最后一个星期五10:15分运行: 0 15 10 ? * 6L在2010,2011,2012年每个月的最后一个星期五的10:15分运行: 0 15 10 ? * 6L 2010-2012每月第三个星期五的10:15分运行: 0 15 10 ? * 6#3--><!-- 例中:将定时运行CCC所代表的类中方法DDD里的定时器代码 --><beans><!-- 定时器执行方法 --><bean id="BBB" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><property name="targetObject"><ref bean="CCC" /><!-- 调用具体执行类(spring配置的bean) --></property><property name="targetMethod"><value>DDD</value><!-- 调用的类(CCC)中的方法 --></property></bean><!-- 设置定时器运行时间 --><bean id="AAA"class="org.springframework.scheduling.quartz.CronTriggerBean"><property name="jobDetail"><ref bean="BBB" /></property><property name="cronExpression"><value>0 0/2 * * * ?</value></property></bean><!-- 总管理类,如果lazy-init='false',则容器启动时就会执行调度程序--><!-- 如果lazy-init='true',则需要实例化该bean才能执行调度程序 --><bean id="startQuartz" lazy-init="false"class="org.springframework.scheduling.quartz.SchedulerFactoryBean"><property name="triggers"><list><ref bean="AAA" /></list></property></bean></beans>
- Spring配置定时器的xml文件
- Spring配置定时器的xml文件
- Spring 定时器 xml文件配置
- Spring基于xml的定时器配置
- Spring设置定时器XML配置!
- 配置Spring的XML文件
- Spring定时器的配置(注解+xml)方式
- Spring定时器技术终结者——采用XML配置的方式实现Spring定时器
- spring定时器的配置
- Spring定时器的配置
- spring定时器的配置
- Spring 定时器的配置
- spring 的定时器配置
- Spring定时器的配置
- spring 定时器的配置
- Spring 定时器的配置
- spring XML文件配置
- spring 配置xml文件
- 顺时针打印矩阵
- oracle服务启动批处理 提高开机及运行效率
- Lua 与 C混合编程 .
- 【Linux Rsync3.0 实用版安装】
- OpenGL中所有的变换,都是在变换坐标系。
- Spring配置定时器的xml文件
- TCP
- UIControl -控件的基类详解
- 运动会分数统计
- Core Java第十七章知识点总结——JDK新特性——完结篇
- javascript位运算符
- MyEclipse中使用复制粘贴功能卡的解决办法
- 淘宝双12背后的技术故事
- SQL Server Profiler 模板