Skip to content

Commit

Permalink
시간대 안맞던 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JONG-KYEONG committed Dec 6, 2023
1 parent 3c8dcc4 commit 5592a3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions server/src/main/java/com/project/Glog/GlogApplication.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package com.project.Glog;

import com.project.Glog.config.AppProperties;
import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

import java.util.TimeZone;

@SpringBootApplication
@EnableConfigurationProperties(AppProperties.class)
@EnableJpaAuditing
Expand All @@ -14,5 +17,9 @@ public class GlogApplication {
public static void main(String[] args) {
SpringApplication.run(GlogApplication.class, args);
}
@PostConstruct
public void setTimeZone(){
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
"/introduce",
"/pr/posts/posted",
"/search/**",
"/blog/url")
"/blog/url",
"/category/**")
.permitAll()
.requestMatchers(HttpMethod.POST,
"/visit")
Expand Down

0 comments on commit 5592a3c

Please sign in to comment.