From d3a3a322130dd765880c6d57d2fdc7ddbe4689fc Mon Sep 17 00:00:00 2001 From: doSeung11 Date: Wed, 3 Jul 2024 13:45:01 +0900 Subject: [PATCH] fix: scheduling test is completed --- build.gradle | 7 ++++++- .../hanafun/common/scheduler/AutoTransferScheduler.java | 7 +------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index c140101..1cceed1 100644 --- a/build.gradle +++ b/build.gradle @@ -29,12 +29,17 @@ dependencies { implementation 'io.jsonwebtoken:jjwt-impl:0.11.2' implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2' - implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.springframework.boot:spring-boot-starter' implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + compileOnly 'org.projectlombok:lombok' + runtimeOnly 'com.h2database:h2' runtimeOnly 'com.mysql:mysql-connector-j' + annotationProcessor 'org.projectlombok:lombok' + testImplementation 'org.springframework.boot:spring-boot-starter-test' // Spring Security 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 0f43897..56b53ce 100644 --- a/src/main/java/com/hanaro/hanafun/common/scheduler/AutoTransferScheduler.java +++ b/src/main/java/com/hanaro/hanafun/common/scheduler/AutoTransferScheduler.java @@ -2,8 +2,6 @@ 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; @@ -12,11 +10,8 @@ public class AutoTransferScheduler { private final TransactionServiceImpl transactionService; - private static final Logger logger = LoggerFactory.getLogger(AutoTransferScheduler.class); - - @Scheduled(cron = "0 15 13 * * ?") //매일 0시 + @Scheduled(cron = "0 0 0 * * *", zone = "Asia/Seoul") //매일 0시 public void runAutoTransfer(){ - logger.info("auto transfer scheduling test started!!!!!!!!!!!!!!"); transactionService.autoTransfer(); } }