feat:定时任务

This commit is contained in:
Xiang
2026-01-15 17:31:07 +08:00
parent 15cefd3db6
commit cef2662302
5 changed files with 22 additions and 39 deletions

View File

@@ -7,11 +7,13 @@ import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.ComponentScan;
/**
* @Author: xiang
* @Date: 2026-01-04 14:20
*/
@ComponentScan(basePackages = {"com.xiang.*"})
@SpringBootApplication
@ConfigurationPropertiesScan(basePackages = {
"com.xiang.xservice.logger",

View File

@@ -0,0 +1,19 @@
package com.xiang.app.schedule.jntyzx;
import com.xiang.core.quartz.annotation.XxzJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
/**
* @Author: xiang
* @Date: 2026-01-15 17:29
*/
@Slf4j
@Component
public class JtTokenRefreshTask {
@XxzJob(name = "jtTokenRefreshHandler")
public void handle() {
log.info("【Token】江南体育中心token续期定时任务启动!!!");
}
}