首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring Job配备

2012-07-24 
Spring Job配置bean idweatherQuartz //propertyproperty namecronExpressionvalue0 0/1 *

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>

热点排行