Skip to content

Commit

Permalink
Fix : 시간 설정 -> 한국으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjiwoon committed Jan 18, 2024
1 parent 218a9d4 commit acde7c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/catchroom/ChatApplication.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
package com.catchroom;

import jakarta.annotation.PostConstruct;
import java.util.TimeZone;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableFeignClients
@SpringBootApplication
public class ChatApplication {
// Bean 생명주기를 이용한 timezone 설정
@PostConstruct
public void started() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}

public static void main(String[] args) {
SpringApplication.run(ChatApplication.class, args);
Expand Down

0 comments on commit acde7c3

Please sign in to comment.