优化多租户 Job 的实现,保持和 boot 版本尽量一致
This commit is contained in:
@@ -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("美滋滋");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user