스케쥴러 추가

This commit is contained in:
hylee 2024-03-22 12:13:14 +09:00
parent 24d385773c
commit fe88a09c12

View File

@ -24,8 +24,8 @@ public class ScheduledTasks {
@Autowired
private MorakService morakService;
@Scheduled(cron = "*/50 * * * * MON-FRI")
// @Scheduled(cron = "0 40 10 * * MON-FRI")
// @Scheduled(cron = "*/50 * * * * MON-FRI")
@Scheduled(cron = "0 40 10 * * MON-FRI")
public void noonJob() throws IOException {
System.out.println("It's noon!");
morakService.morakMenu();