Skip to content

Commit

Permalink
HOTFIX: 시간대 설정으로 인한 CORS 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yechan-kim committed Aug 1, 2024
1 parent 2b7e512 commit da15def
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
package com.leets.commitatobe;

import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import java.util.TimeZone;

@SpringBootApplication
@EnableJpaAuditing
public class CommitatoBeApplication {

@PostConstruct
public void started() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}

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

0 comments on commit da15def

Please sign in to comment.