优化多租户 Job 的实现,保持和 boot 版本尽量一致

This commit is contained in:
YunaiV
2023-09-16 14:17:25 +08:00
parent b80a928fec
commit a4c2061113
5 changed files with 5 additions and 5 deletions

View File

@@ -5,10 +5,10 @@ import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;
@Component
@TenantJob
public class DemoJob {
@XxlJob("demoJob")
@TenantJob
public void execute() {
System.out.println("美滋滋");
}