打开气象站信息获取

This commit is contained in:
qdxkrs 2022-06-22 16:23:51 +08:00
parent b9bb66bfd9
commit 90f22fa887

View File

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