From 5dbba051b671cc1c5cec84bf143125bcc3176494 Mon Sep 17 00:00:00 2001 From: csct3434 Date: Fri, 22 Mar 2024 10:15:35 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=84=9C=EB=B2=84=20KST=20=ED=83=80?= =?UTF-8?q?=EC=9E=84=EC=A1=B4=20=EC=88=98=EB=8F=99=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seasoning/seasoning/SeasoningApplication.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/today/seasoning/seasoning/SeasoningApplication.java b/src/main/java/today/seasoning/seasoning/SeasoningApplication.java index 86777f1..0fe06d8 100644 --- a/src/main/java/today/seasoning/seasoning/SeasoningApplication.java +++ b/src/main/java/today/seasoning/seasoning/SeasoningApplication.java @@ -1,9 +1,14 @@ package today.seasoning.seasoning; +import java.time.LocalDateTime; +import java.util.TimeZone; +import javax.annotation.PostConstruct; +import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; +@Slf4j @EnableScheduling @SpringBootApplication public class SeasoningApplication { @@ -12,4 +17,10 @@ public static void main(String[] args) { SpringApplication.run(SeasoningApplication.class, args); } + @PostConstruct + void setTimeZone() { + TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); + log.info("Server Time : {}", LocalDateTime.now()); + } + }