liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
                        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
 
    <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
        <property name="triggers">
            <list>
                
                <!-- simple trigger demo -->
                <!-- start delay 10 seconds, repeat every 50 seconds -->
                <!-- 
                <bean class="org.springframework.scheduling.quartz.SimpleTriggerBean">
                    <property name="jobDetail">
                        <bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
                            <property name="targetObject" ref="xxxManager" />
                            <property name="targetMethod" value="xxx" />
                            <property name="concurrent" value="false" />
                        </bean>
                    </property>
                    <property name="startDelay" value="10000" />
                    <property name="repeatInterval" value="50000" />
                </bean>
                 -->
                
                <!-- cron trigger demo -->
                <!-- run every morning at 6 AM -->
                <!-- 
                <bean class="org.springframework.scheduling.quartz.CronTriggerBean">
                    <property name="jobDetail">
                        <bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
                            <property name="targetObject" ref="xxxManager" />
                            <property name="targetMethod" value="xxx" />
                            <property name="concurrent" value="false" />
                        </bean>
                    </property>
                    <property name="cronExpression" value="0 0 6 * * ?" />
                </bean>
                 -->
                
            </list>
        </property>
    </bean>
    
</beans>