package com.javaweb.quartz.task;
|
|
|
import com.javaweb.geotdp.service.impl.GeoDataServiceImpl;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @author mzy-cxy
|
*/
|
@Component("handleExceptionTask")
|
public class HandleExceptionTask {
|
|
@Autowired
|
private GeoDataServiceImpl geoDataService;
|
|
|
/**
|
* 扫描异常
|
*/
|
public void scanException(){
|
System.out.println("扫描异常任务开始执行=============扫描异常任务开始执行!=========================");
|
try {
|
geoDataService.scanHandleException();
|
} catch (Exception e) {
|
System.out.println("扫描异常任务开始执行=============扫描异常任务执行失败!=========================");
|
e.printStackTrace();
|
}
|
System.out.println("扫描异常任务开始执行=============扫描异常任务执行结束!=========================");
|
}
|
|
|
}
|