package com.doumee.api.timer; import com.doumee.core.utils.DateUtil; import com.doumee.service.business.BookingsService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import java.util.Date; /** * Created by IntelliJ IDEA. * * @Author : Rk * @create 2025/3/20 9:58 */ @Component @EnableScheduling @Slf4j public class TaskController { @Autowired private BookingsService bookingsService; /** * 定时自动开始会议 */ @Scheduled(cron = "1 * * * * ?") public void autoStart() { bookingsService.autoStart(); } }