|
@@ -8,6 +8,7 @@ import java.util.Map;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
|
@@ -34,6 +35,7 @@ public class DeptTaskUtil {
|
|
|
private TjDao tjDao;
|
|
|
|
|
|
// @Scheduled(cron = "0 30 0 1 * ?")
|
|
|
+//@Async("threadPoolTaskExecutor")//多个定时器需要用到的线程池
|
|
|
private void task() {
|
|
|
String[] columns = new String[] {"重大建设项目","公共资源交易","义务教育","户籍管理","社会救助","养老服务","公共法律服务","财政预决算",
|
|
|
"促进就业","社会保险","国土空间规划","征地补偿","生态环保","国有土地上房屋征收","保障性住房","农村危房改造","城市综合执法","市政服务",
|