dtp-引入dtp代替hippop4j
This commit is contained in:
@@ -26,7 +26,7 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||
public class RefreshPersonTask extends BaseTask {
|
||||
@Autowired
|
||||
private RoomService roomService;
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
|
||||
@SneakyThrows
|
||||
|
@@ -20,7 +20,7 @@ public class UserRechargeLevelTask {
|
||||
private UserRechargeLevelService service;
|
||||
@Autowired
|
||||
private DiamondGiveHistoryMapper diamondGiveHistoryMapper;
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
|
||||
@Scheduled(cron = "1 0 0 * * ?")
|
||||
|
@@ -19,7 +19,7 @@ public class GuildPolicy2SettlementTask {
|
||||
|
||||
@Autowired
|
||||
private GuildPolicy2Service guildPolicy2Service;
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
|
||||
/**
|
||||
|
@@ -22,7 +22,7 @@ public class SSGuildTask {
|
||||
|
||||
@Autowired
|
||||
private SSGuildService ssGuildService;
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
|
||||
private static final DateTimeFormatter dateFormatters = DateTimeFormatter.ofPattern(DateTimeUtil.DEFAULT_DATETIME_PATTERN);
|
||||
|
@@ -32,7 +32,7 @@ public class BravoTask {
|
||||
private PartitionInfoService partitionInfoService;
|
||||
@Autowired
|
||||
private BravoRecordService service;
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
|
||||
@Autowired
|
||||
|
@@ -19,7 +19,7 @@ import java.util.concurrent.ThreadPoolExecutor;
|
||||
@Slf4j
|
||||
public class Lucky24WeekRankTask {
|
||||
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
@Autowired
|
||||
private Lucky24SendWeekRankRewardService service;
|
||||
|
@@ -31,7 +31,7 @@ public class Lucky25Task {
|
||||
private PartitionInfoService partitionInfoService;
|
||||
@Autowired
|
||||
private Lucky25RecordService service;
|
||||
@Resource(name = "bizExecutor")
|
||||
@Resource(name = "biz-executor")
|
||||
private ThreadPoolExecutor bizExecutor;
|
||||
|
||||
@Autowired
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package com.accompany.scheduler;
|
||||
|
||||
import io.micrometer.core.instrument.MeterRegistry;
|
||||
import org.dromara.dynamictp.spring.annotation.EnableDynamicTp;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.SpringBootConfiguration;
|
||||
@@ -15,6 +16,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
* @author PaperCut
|
||||
* @date 2018/6/11
|
||||
*/
|
||||
@EnableDynamicTp
|
||||
@SpringBootApplication
|
||||
@ComponentScan({"com.accompany","com.xuanyin"})
|
||||
@EnableScheduling
|
||||
|
@@ -27,7 +27,7 @@ spring:
|
||||
refresh: true
|
||||
- data-id: sysconf.yml
|
||||
refresh: true
|
||||
- data-id: threadpool.yml
|
||||
- data-id: dtp.yml
|
||||
refresh: true
|
||||
|
||||
---
|
||||
@@ -50,7 +50,7 @@ spring:
|
||||
refresh: true
|
||||
- data-id: sysconf.yml
|
||||
refresh: true
|
||||
- data-id: threadpool.yml
|
||||
- data-id: dtp.yml
|
||||
refresh: true
|
||||
- data-id: database.yml
|
||||
refresh: true
|
||||
|
Reference in New Issue
Block a user