zoukankan      html  css  js  c++  java
  • 【Quartz】【程序目录结构】/DetectNonWorkingDay/src/main/config/applicationContext.xml

     1 <?xml version="1.0" encoding="UTF-8"?>
    2 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
    3 xsi:schemaLocation="
    4 http://www.springframework.org/schema/beans
    5 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    6 http://www.springframework.org/schema/context
    7 http://www.springframework.org/schema/context/spring-context-3.0.xsd
    8 http://www.springframework.org/schema/tx
    9 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
    10 http://www.springframework.org/schema/aop
    11 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
    12 <!-- cronTrigger extends QuartzJobBean,MyJob1 -->
    13 <bean id="myJob1" class="org.springframework.scheduling.quartz.JobDetailBean">
    14 <property name="jobClass" value="com.apple.sqm.dnwd.detect.delta.Detect" />
    15 </bean>
    16 <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    17 <property name="jobDetail" ref="myJob1" />
    18 <property name="cronExpression" value="0/5 * * * * ?" />
    19 </bean>
    20 <!-- set scheduler -->
    21 <bean id="myScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    22 <property name="triggers">
    23 <list>
    24 <ref bean="cronTrigger" />
    25 </list>
    26 </property>
    27 <property name="quartzProperties">
    28 <props>
    29 <prop key="org.quartz.threadPool.threadCount">50</prop>
    30 <prop key="org.quartz.scheduler.instanceId">AUTO</prop>
    31 </props>
    32 </property>
    33 </bean>
    34 </beans>
  • 相关阅读:
    HashMap实现原理
    框架-Spring
    团队开发介绍
    返回一个环状整数数组中最大子数组之和
    软件工程学习体会
    书店促销
    寻找小水王
    梦断代码阅读笔记3
    找水王
    梦断代码阅读笔记2
  • 原文地址:https://www.cnblogs.com/mount/p/2243287.html
Copyright © 2011-2022 走看看