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-3.1.xsd">
<!--配置调度工厂-->
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean" autowire="no">
<property name="triggers">
<list>
<ref local="skillGroupDataTrigger"/>
</list>
</property>
<!--配置定时任务-->
<bean id="skillGroupDataTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="skillGroupDataJob" />
<property name="cronExpression" value="0 0/1 * * * ?" />
</bean>
<!---配置作业类-->
<bean id="skillGroupDataJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="skillGroupDataService"/>
</property>
<property name="targetMethod">
<value>findSkillGroupData</value>
</property>
</bean>
<bean id="skillGroupDataService" class="com.direct.cc.monitor.avaya.service.SkillGroupDataServiceImpl">
</bean>
java 类
package com.service;
/**
*
*@author <a href="mailto:zhangzm@bonatone.com">张志明</a>
*
*/
public class SkillGroupDataServiceImpl {
/*
* 定时任务启动调用
*/
public void findSkillGroupData() throws Exception{
}
}