From 2333b81c31c445d1a2b4fdde2cdbf0acfe8bd49a Mon Sep 17 00:00:00 2001 From: doSeung11 Date: Wed, 3 Jul 2024 13:00:40 +0900 Subject: [PATCH] scheduling testing --- .../hanafun/common/scheduler/AutoTransferScheduler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hanaro/hanafun/common/scheduler/AutoTransferScheduler.java b/src/main/java/com/hanaro/hanafun/common/scheduler/AutoTransferScheduler.java index 9d178b3..0f43897 100644 --- a/src/main/java/com/hanaro/hanafun/common/scheduler/AutoTransferScheduler.java +++ b/src/main/java/com/hanaro/hanafun/common/scheduler/AutoTransferScheduler.java @@ -2,6 +2,8 @@ import com.hanaro.hanafun.transaction.service.impl.TransactionServiceImpl; import lombok.RequiredArgsConstructor; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @@ -10,8 +12,11 @@ public class AutoTransferScheduler { private final TransactionServiceImpl transactionService; - @Scheduled(cron = "0 0 0 * * ?") //매일 0시 + private static final Logger logger = LoggerFactory.getLogger(AutoTransferScheduler.class); + + @Scheduled(cron = "0 15 13 * * ?") //매일 0시 public void runAutoTransfer(){ + logger.info("auto transfer scheduling test started!!!!!!!!!!!!!!"); transactionService.autoTransfer(); } }