Commit f32654fb authored by hezhuozhi's avatar hezhuozhi

提交定时任务

parent 8ab56f9c
package com.yeejoin.amos.boot.module.jxiop.api.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;
......@@ -11,6 +12,7 @@ import java.util.concurrent.ThreadPoolExecutor;
public class AsyncConfig {
@Bean("async")
@Primary
public Executor asyncScheduledTask(){
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setMaxPoolSize(50);
......
......@@ -729,6 +729,7 @@ public class MonitorServiceImpl implements MonitorService {
}
requestUrl = requestUrl + "&areaName=" + areaName;
}
log.info("请求地址{}",requestUrl);
List<BudunStationValueDto> budunStationValueDtoList = httpRequestUtil.getResPonse(requestUrl,
Constants.REQUEST_GET, "", Constants.resovleRule_data, BudunStationValueDto.class);
HashMap<String, List<String>> hashMap = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment