feat:定时任务
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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续期定时任务启动!!!");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user