QuartzManagerUtil.java 546 Bytes
package com.cjs.cms.util.lang;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 定时任务管理工具类
 * @author tongxiaochuan
 *
 */
@Lazy(false)
@Component
public class QuartzManagerUtil implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        QuartzThread quartzThread = new QuartzThread();
        Thread th = new Thread(quartzThread);
        th.start();
    }
}