dtp-引入dtp代替hippop4j

This commit is contained in:
2025-08-27 16:43:26 +08:00
parent 99922e8630
commit d8a5f54f03
56 changed files with 121 additions and 170 deletions

View File

@@ -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

View File

@@ -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 * * ?")

View File

@@ -19,7 +19,7 @@ public class GuildPolicy2SettlementTask {
@Autowired
private GuildPolicy2Service guildPolicy2Service;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
/**

View File

@@ -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);

View File

@@ -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

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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