Skip to content

Commit

Permalink
scheduling testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Do760 committed Jul 3, 2024
1 parent e3119d9 commit 2333b81
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
}
}

0 comments on commit 2333b81

Please sign in to comment.