parent
ca01cb1536
commit
785f8a2f55
@ -28,25 +28,25 @@ public class SaticScheduleTask {
|
|||||||
@Resource
|
@Resource
|
||||||
private WeatherGet weatherGet;
|
private WeatherGet weatherGet;
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 定时获取数据,每天9:31 触发
|
// * 定时获取数据,每天9:31 触发
|
||||||
*/
|
// */
|
||||||
@Scheduled(cron = "00 31 9 ? * *")
|
// @Scheduled(cron = "00 31 9 ? * *")
|
||||||
private void dailyReportFireLastTasks() {
|
// private void dailyReportFireLastTasks() {
|
||||||
LocalDate pdfStartDate = LocalDate.of(2021, 5, 20);
|
// LocalDate pdfStartDate = LocalDate.of(2021, 5, 20);
|
||||||
String url = "http://47.105.215.208:8005/intfa/queryData/16079680";
|
// String url = "http://47.105.215.208:8005/intfa/queryData/16079680";
|
||||||
Map<String,String> postParam = new HashMap<>(8);
|
// Map<String,String> postParam = new HashMap<>(8);
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
// /**
|
||||||
|
// * 定时获取气象站数据 每 5 分钟触发
|
||||||
/**
|
// */
|
||||||
* 定时获取气象站数据 每 5 分钟触发
|
// @Scheduled(cron = "0 0/5 * * * ?")
|
||||||
*/
|
// private void configureTasks() {
|
||||||
@Scheduled(cron = "0 0/5 * * * ?")
|
// logger.info("执行静态定时任务时间: " + LocalDateTime.now());
|
||||||
private void configureTasks() {
|
// weatherGet.findWeather();
|
||||||
logger.info("执行静态定时任务时间: " + LocalDateTime.now());
|
// }
|
||||||
weatherGet.findWeather();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String url = "http://47.105.215.208:8005/intfa/queryData/16079680";
|
String url = "http://47.105.215.208:8005/intfa/queryData/16079680";
|
||||||
|
Loading…
Reference in New Issue
Block a user