定时器 cronTriggerBean 导包原则

<!-- 定时器 -->
    <bean id="triggerJob" class="com.sungoal2.util.TriggerJob">         
        <property name="dao_qdAward" ref="dao_qdAward"/>
    </bean>
    <bean id="jobDetailBean" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject" ref="triggerJob"/>
        <property name="targetMethod" value="execute"/>
    </bean>
    <bean id="cronTriggerBean" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail" ref="jobDetailBean"/>
        <property name="cronExpression" value="0 44 1 * * ?"/>
    </bean>
    <bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
        <property name="triggers">
            <list>
                <ref bean="cronTriggerBean"/>
            </list>
        </property>
        <property name="quartzProperties">
<props>
<prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
</props>
        </property>
    </bean>


导包  spring.jar,  common-collection_3-2.jar ,quartz-all-1.6.0.jar
要防止冲突的包是 : checkstyle-all-3.1.jar common-collection.jar以及低版本的包 都要删除 这样就决对不会错了

你可能感兴趣的:(spring,quartz)