applicationContext-schedule.xml 1.84 KB
Newer Older
manxiaoqiang committed
1 2 3 4 5 6 7 8 9 10 11
<?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:task="http://www.springframework.org/schema/task"
       xsi:schemaLocation="http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"

       default-lazy-init="true">

    <description>调度配置</description>

manxiaoqiang committed
12 13 14
    <bean id="tkioAccountTask" class="tkio.task.AccountTask"></bean>
   <task:scheduled-tasks>
        <!--//定时同步短链数据(每5分钟执行一次)-->
manxiaoqiang committed
15
        <task:scheduled ref="tkioAccountTask" method="task" cron="0 21 18 * * ?"/>
manxiaoqiang committed
16 17 18 19
    </task:scheduled-tasks>

    <bean id="tkioNoticeTask" class="tkio.task.NoticeTask"></bean>
    <task:scheduled-tasks>
manxiaoqiang committed
20
        <task:scheduled ref="tkioNoticeTask" method="task" cron="0 33 3 * * ?"/>
21 22
    </task:scheduled-tasks>

manxiaoqiang committed
23 24
    <bean id="emailTask" class="tkio.task.SendEmailTask"></bean>
    <task:scheduled-tasks>
manxiaoqiang committed
25
        <task:scheduled ref="emailTask" method="task" cron="0 20 17 * * ?"/>
manxiaoqiang committed
26 27
    </task:scheduled-tasks>

28 29 30 31 32
    <bean id="trackAccountTask" class="track.task.AccountTask"></bean>


    <task:scheduled-tasks>
        <!--//定时同步短链数据(每5分钟执行一次)-->
manxiaoqiang committed
33
        <task:scheduled ref="trackAccountTask" method="task" cron="0 32 2 * * ?"/>
manxiaoqiang committed
34
    </task:scheduled-tasks>
zhangxiaoyan committed
35

zhangxiaoyan committed
36
    <bean id="SyncAppDataTask" class="common.task.SyncAppDataTask"></bean>
zhangxiaoyan committed
37 38 39 40


    <task:scheduled-tasks>
        <!--//定时同步短链数据(每5分钟执行一次)-->
manxiaoqiang committed
41 42
        <task:scheduled ref="SyncAppDataTask" method="syncAppInfo" cron="0 31 8 * * ?"/>
        <task:scheduled ref="SyncAppDataTask" method="syncAppDeviceNum" cron="0 11 8 * * ?"/>
zhangxiaoyan committed
43
    </task:scheduled-tasks>
zhangxiaoyan committed
44 45


manxiaoqiang committed
46
</beans>