Skip to content

Commit

Permalink
Merge pull request #63 from HanaFun/revenue
Browse files Browse the repository at this point in the history
fix: scheduling testing is completed
  • Loading branch information
doSeung11 authored Jul 3, 2024
2 parents 161d893 + 10fcd8c commit c9bf42a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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

0 comments on commit c9bf42a

Please sign in to comment.