Spring quartz实例
?
任务Java代码:
?
?
配置文件:
package com.test;import org.springframework.context.support.ClassPathXmlApplicationContext;public class TMain {public static void main(String[] args) {System.out.println("Test start.");new ClassPathXmlApplicationContext("applicationContext.xml");// 如果配置文件中将startQuertz bean的lazy-init设置为false 则不用实例化// context.getBean("startQuertz");System.out.print("Test end..\n");}}?