spring中配置quartz定时器
jar包说明
spring3.0+quartz1.0版本,这里如果使用quartz2.0的话,spring的jar包要3.2版本以上
下载地址:http://download.csdn.net/detail/dzy21/9582333
实体类的方法
定时器就来调用这个方法
package com.cloud.impl; public class GetDataImpl { public void getData(){ System.out.println("测试定时器的数据拉取..."); } } |
spring配置文件
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" |