读书人

Spring Job配备

发布时间: 2012-07-24 17:47:57 作者: rapoo

Spring Job配置
<bean id="weatherQuartz" />
</property>
<property name="cronExpression">
<value>0 0/1 * * * ?</value>
</property>
</bean>


<bean autowire="no"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref local="weatherJobCron"/>
</list>
</property>
</bean>

读书人网 >软件架构设计

热点推荐