package com.zzsn.crawler;

import com.zzsn.configuration.SpringContextUtil;
import com.zzsn.awx.service.SiteService;
import org.springframework.beans.BeansException;

import java.util.TimerTask;


public class SiteTask extends TimerTask {

	@Override
	public void run() {
		System.out.println("开是发送信息");
		task();
	}
	
	public static void task(){
		
		try {
			SiteService sites= SpringContextUtil.getBean(SiteService.class);
//			sites.sendUrlToweixin("");
		} catch (BeansException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
