接口修正、成就修正、学习记录修正

This commit is contained in:
2025-11-03 17:12:40 +08:00
parent 35aee59178
commit b95fff224b
28 changed files with 730 additions and 302 deletions

View File

@@ -3,7 +3,7 @@ package org.xyzh.crontab.scheduler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.support.CronTrigger;
import org.springframework.stereotype.Component;
@@ -29,9 +29,7 @@ public class SchedulerManager {
private TaskScheduler taskScheduler;
@Autowired
private ApplicationContext applicationContext;
@Autowired
@Qualifier("crontabTaskExecutor")
private TaskExecutor taskExecutor;
/**

View File

@@ -20,7 +20,7 @@ import java.util.Date;
* @copyright xyzh
* @since 2025-10-25
*/
@Component
@Component("crontabTaskExecutor")
public class TaskExecutor {
private static final Logger logger = LoggerFactory.getLogger(TaskExecutor.class);