Revert "打开气象站信息获取"

This reverts commit 90f22fa887.
This commit is contained in:
qdxkrs 2022-06-22 18:02:47 +08:00
parent ca01cb1536
commit 785f8a2f55

View File

@ -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";