| | |
| | | import com.moral.util.HttpUtils; |
| | | import com.moral.util.WxMappingJackson2HttpMessageConverter; |
| | | |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import org.apache.commons.lang3.time.DateUtils; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.util.EntityUtils; |
| | |
| | | |
| | | |
| | | @Resource |
| | | private AQIService aqiService; |
| | | |
| | | public void insertData(){ |
| | | private AQIService aqiService; |
| | | @XxlJob("insertData") |
| | | public void insertData(){ |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | RestTemplate restTemplate = new RestTemplate(); |
| | | restTemplate.getMessageConverters().add(new WxMappingJackson2HttpMessageConverter()); |