SchedulerFactoryBean[通俗易懂]

SchedulerFactoryBean[通俗易懂]<?xmlversion="1.0"encoding="UTF-8"?><beans><beanid="scheduler"class="org.springframework.scheduling.quartz.SchedulerFactoryBean"lazy-init="false"><prope

大家好,又见面了,我是你们的朋友全栈君。<?xml version=”1.0″ encoding=”UTF-8″?><beans><bean id=”scheduler” class=”org.springframework.scheduling.quartz.SchedulerFactoryBean” lazy-init=”false”><property name=”startupDelay” value=”10″></property><property name=”triggers”><list><!– <ref local=”autoQueryCitiesTrigger” /> –><ref local=”hotelAutoCancelTrigger”></ref><ref local=”timerAuditeTrigger”></ref><ref local=”timerAutoChangeStatusTrigger”></ref></list></property></bean><bean id=”autoQueryCitiesTrigger” class=”org.springframework.scheduling.quartz.SimpleTriggerBean”><property name=”jobDetail” ref=”autoQueryCitiesJob”></property><property name=”repeatInterval” value=”30000″></property></bean><bean name=”autoQueryCitiesJob” class=”org.springframework.scheduling.quartz.JobDetailBean”><property name=”jobClass” value=”com.hnatourism.tdos.scheduler.job.AutoQueryCitiesJobImpl”></property><property name=”jobDataAsMap”><map><entry key=”hnaProcityManager” value-ref=”hnaProcityManager”></entry><!– <entry key=”airportInfoManager” value-ref=”airportInfoManager” /> –><entry key=”springContextUtil” value-ref=”SpringContextUtil”></entry></map></property><property name=”applicationContextJobDataKey” value=”applicationContext”></property></bean><bean name=”autoQueryCitiesManager” class=”com.hnatourism.tdos.scheduler.job.AutoQueryCitiesJobImpl”><property name=”hnaProcityManager” ref=”hnaProcityManager”></property><!– <property name=”airportInfoManager” ref=”airportInfoManager” /> –><property name=”springContextUtil” ref=”SpringContextUtil”></property></bean><bean id=”hotelAutoCancelTrigger” class=”org.springframework.scheduling.quartz.SimpleTriggerBean”><property name=”jobDetail” ref=”hotelAutoCancelJob”></property><property name=”repeatInterval” value=”300000″></property></bean><bean id=”timerAuditeTrigger” class=”org.springframework.scheduling.quartz.CronTriggerBean”><property name=”jobDetail” ref=”timerAuditeJob”></property><property name=”cronExpression”><value>0 0 18 * * ?</value><!–每天18点0分0秒 –></property></bean><bean id=”timerAutoChangeStatusTrigger” class=”org.springframework.scheduling.quartz.CronTriggerBean”><property name=”jobDetail” ref=”timerAutoChangeStatusJob”></property><property name=”cronExpression”><value>0 0 0 * * ?</value><!–每天0点0分0秒 –></property></bean><bean name=”timerAuditeJob” class=”org.springframework.scheduling.quartz.JobDetailBean”><property name=”jobClass” value=”com.hnatourism.tdos.scheduler.job.TimerAuditeJob”></property><property name=”applicationContextJobDataKey” value=”applicationContext”></property></bean><bean name=”timerAutoChangeStatusJob” class=”org.springframework.scheduling.quartz.JobDetailBean”><property name=”jobClass” value=”com.hnatourism.tdos.scheduler.job.TimerAutoChangeStatusJob”></property><property name=”applicationContextJobDataKey” value=”applicationContext”></property></bean><bean name=”hotelAutoCancelJob” class=”org.springframework.scheduling.quartz.JobDetailBean”><property name=”jobClass” value=”com.hnatourism.tdos.scheduler.job.AutoCancelOrderJob”></property><property name=”jobDataAsMap”><map><entry key=”timeOut” value=”30″></entry></map></property><property name=”applicationContextJobDataKey” value=”applicationContext”></property></bean></beans>

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/142115.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Scrapy爬虫框架_nodejs爬虫框架对比

    Scrapy爬虫框架_nodejs爬虫框架对比一、爬虫框架Scrapy的整体架构:ScrapyEngine(引擎):负责Spider、ItemPipeline、Downloader、Scheduler中间的通讯、信号、数据传递等。Spider(爬虫):负责处理所有Responses,从中分析提取数据,获取Item字段需要的数据,并将需要跟进的URL提交给引擎,再次进入Scheduler(调度器)。(DTO数据传输对象)Scheduler(调度器):它负责接受引擎发送过来的Request请求,并按照一定的方式进行整理排列,入队,当引.

    2022年11月1日
  • MTP模式与USB存储模式(MTP in Android)「建议收藏」

    MTP模式与USB存储模式(MTP in Android)「建议收藏」转载:http://bbs.meizu.cn/thread-4747416-1-1.htmlMTPinAndroidMTP的全称是MediaTransferProtocol(媒体传输协议),它是微软公司提出的一套媒体文件传输协议。Android从3.0开始支持MTP。不过,在今天的智能手机领域内,Google和微软是一对冤家,为什么Android中会使用MTP呢?请看下文。一背景知…

    2022年4月20日
  • Linux Bash漏洞修复

    Linux Bash漏洞修复特别提醒:Linux官方已经给出最新解决方案,已经解决被绕过的bug,建议您尽快重新完成漏洞修补。openSUSE镜像已经给出修复方案了。【已确认被成功利用的软件及系统】所有安装GNUbash版本小于或者等于4.3的Linux操作系统。【漏洞描述】该漏洞源于你调用的bashshell之前创建的特殊的环境变量,这些变量可以包含代码,同时会被bash执行。【漏洞检测方法】漏洞检测命令:env-iX='(){(a)=>\’bash…

    2022年10月26日
  • java下载文件_java下载文件到本地[通俗易懂]

    java下载文件_java下载文件到本地[通俗易懂]//获取文件路径并创建一个出入流StringfilePath=”文件实际路径”;FileInputStreamfis=newFileInputStream(filePath);//创建输出流,向客户端输出数据ServletOutputStreamsos=response.getOutputStream();//获取文件名StringfileName=filePath.subs…

    2022年7月8日
  • ORA-12154 问题解决办法

    ORA-12154 问题解决办法问题 ORA-12154: TNS:couldnotresolvetheconnectidentifierspecified,即无法解析指定的连接标识符。这说明缺少了一个环境变量,TNS_ADMIN。    解决方法:右击我的电脑->属性 ->高级 ->环境变量->系统变量->新建,    变量名为:TNS_A

    2022年7月24日
  • oracle创建索引和删除索引_oracle删除索引语句

    oracle创建索引和删除索引_oracle删除索引语句索引的创建createindexindex_nameontable(column_name1,column_name2);创建唯一索引createindexuniqueindex_nameontable(column_name1,column_name2);索引的删除。dropindexindex_name;以下两条语句是…

    2022年9月5日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号