@Component
@EnableScheduling
public class ScheduleTaskService {
@Autowired
BillingService billingService;
@Scheduled(cron = "0 35 10 * * ? ")
public void autosync() {
billingService.warningLostService();
}
}
@Component
@EnableScheduling
public class ScheduleTaskService {
@Autowired
BillingService billingService;
@Scheduled(cron = "0 35 10 * * ? ")
public void autosync() {
billingService.warningLostService();
}
}