首先编写服务类: package QuartzTest; import java.util.Date; public class CourseService ... { public void start()...{ System.out.println(new Date().getSeconds()); }} 编写调度类,需要继承QuartzJobBean : package QuartzTest; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.scheduling.quartz.QuartzJobBean; public class QuartzJob extends QuartzJobBean ... { protected void exec