environment:
TZ:Asia/Seoul
해당 설정 추가
java -jar -Duser.timezone=Asia/Seoul app.jar
-Duser.timezone=Asia/Seoul 설정 추가
@SpringBootApplication
public class TimeZoneApplication {
@PostConstruct
void started() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}
public static void main(String[] args) {
application.run(TimeZoneApplication.class, args);
}
}