1.Spring 2.5集成quartz任务调度框架,首先需要准备几个必须的类库:
spring.jar
jaxen-1.1.3.jar
quartz-all-1.6.0.jar
jta.jar
commons-collections-3.2.1.jar
commons-logging.jar
dom4j-1.6.1.jar
2.创建一个业务处理类HellowWorld
package junit.test;public class HelloWorld { public void sayHelloWorld(){ System.out.println("are you ready? say hello world :"+(new java.util.Date()).toString()); }}
3.配置beans-helloworld.xml
3.写个例子来测试一下
package junit.test;import org.springframework.context.support.ClassPathXmlApplicationContext;public class HellowWorldTest { public static void main(String[] args){ new ClassPathXmlApplicationContext("beans-helloworld.xml"); }}