diff --git a/build.gradle b/build.gradle index ad29b92..111b96d 100644 --- a/build.gradle +++ b/build.gradle @@ -58,6 +58,7 @@ dependencies { annotationProcessor "jakarta.persistence:jakarta.persistence-api" implementation 'org.springframework.boot:spring-boot-starter-data-redis' + implementation 'org.springframework.session:spring-session-data-redis' // Spring docs implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0' diff --git a/src/main/java/com/helpmeCookies/global/config/RedisHttpSessionConfig.java b/src/main/java/com/helpmeCookies/global/config/RedisHttpSessionConfig.java new file mode 100644 index 0000000..f90232f --- /dev/null +++ b/src/main/java/com/helpmeCookies/global/config/RedisHttpSessionConfig.java @@ -0,0 +1,10 @@ +package com.helpmeCookies.global.config; + +import org.springframework.context.annotation.Configuration; +import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; + +@Configuration +@EnableRedisHttpSession +public class RedisHttpSessionConfig { + // 세션 타임아웃을 설정할 수 있습니다. +}