From 5592a3ce783ea96eab717cefe21df551adfcb5a5 Mon Sep 17 00:00:00 2001 From: JongKyeong Kim Date: Wed, 6 Dec 2023 16:33:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B0=84=EB=8C=80=20=EC=95=88?= =?UTF-8?q?=EB=A7=9E=EB=8D=98=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main/java/com/project/Glog/GlogApplication.java | 7 +++++++ .../main/java/com/project/Glog/config/SecurityConfig.java | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/com/project/Glog/GlogApplication.java b/server/src/main/java/com/project/Glog/GlogApplication.java index ac447e02..e99cb3a4 100644 --- a/server/src/main/java/com/project/Glog/GlogApplication.java +++ b/server/src/main/java/com/project/Glog/GlogApplication.java @@ -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 @@ -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")); + } } diff --git a/server/src/main/java/com/project/Glog/config/SecurityConfig.java b/server/src/main/java/com/project/Glog/config/SecurityConfig.java index f2c5f032..5258f674 100644 --- a/server/src/main/java/com/project/Glog/config/SecurityConfig.java +++ b/server/src/main/java/com/project/Glog/config/SecurityConfig.java @@ -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")