| | |
| | | // @Scheduled(cron = "0 0 22,23 * * ?") //每天晚上22、23点执行一次 |
| | | // @Scheduled(cron = "0 0/5 * * * ? ") // 分钟 |
| | | // @Scheduled(cron = "0 0/5 * * * ? ") |
| | | @Scheduled(cron = "0 0/1 * * * ? ") |
| | | @Scheduled(cron = "0 3/5 * * * ? ") |
| | | public void execReportDateSchedule() throws UnsupportedEncodingException { |
| | | logger.info("【####】上报数据开始..."); |
| | | |
| | |
| | | StringBuffer recordFromTaskResultBuffer = null; |
| | | //上报数据 |
| | | try { |
| | | // URL url = new URL("http://120.71.182.198:9999/v1/data/receive/measuresTaskRecordMsg"); |
| | | URL url = new URL("https://cjzjg.gtaq.com.cn:7004/v1/data/receive/measuresTaskRecordMsg"); //备用地址 |
| | | URL url = new URL("http://120.71.182.198:9999/v1/data/receive/measuresTaskRecordMsg"); |
| | | //URL url = new URL("https://cjzjg.gtaq.com.cn:7004/v1/data/receive/measuresTaskRecordMsg"); //备用地址 |
| | | //得到连接对象 |
| | | con = (HttpURLConnection) url.openConnection(); |
| | | //设置请求类型 |