`
qll3609120
  • 浏览: 55397 次
社区版块
存档分类
最新评论

Cron定时任务

阅读更多

<bean id="importMonthDataBean" class="org.springframework.scheduling.quartz.CronTriggerBean">

<property name="jobDetail" ref="importMonthDataBeanTask"></property>

   <property name="cronExpression" value="0 0/2 * * * ?"/>

</bean>

<bean id="importMonthDataBeanTask" class="org.springframework.scheduling.quartz.JobDetailBean">

<property name="jobClass" value="com.fpi.prj.release.aqms.task.dataImport.ImportMonthDataTask"></property>

<property name="jobDataAsMap">

<map>

<entry key="requestUrl" value="http://172.19.20.188:9090/aqms/services/restful/json/AqmsExportService/getAvgDatas?code=all"></entry>

<entry key="importMonthDataService" value-ref="importMonthDataService"></entry>

<entry key="cityInfoForMobileBusiness" value-ref="cityInfoForMobileBusiness"></entry>

<entry key="monthDatahandler" value-ref="monthDataHandler"></entry>

<entry key="monthDataBusiness" value-ref="monthDataBusiness"></entry>

</map>

</property>

</bean>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics