exam-system/src/main/java/com/gkhy/exam/pay/controller/PaymentApiController.java
@@ -6,6 +6,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -63,4 +64,11 @@ e.printStackTrace(); } } @Scheduled(cron = "0 23 10 * * ? ") // @Scheduled(cron = "0 37 17 * * ?") public void checkWarning() { paymentService.schedulePayment(); } }