File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/com/back/global/websocket/store Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2525 */
2626@ Slf4j
2727@ Component
28- @ RequiredArgsConstructor
2928public class RedisSessionStore {
3029
3130 private final RedisTemplate <String , Object > redisTemplate ;
@@ -39,8 +38,11 @@ public class RedisSessionStore {
3938 // TTL 설정
4039 private static final Duration SESSION_TTL = Duration .ofMinutes (6 );
4140
41+ // 생성자에서 ObjectMapper 설정
4242 public RedisSessionStore (RedisTemplate <String , Object > redisTemplate ) {
4343 this .redisTemplate = redisTemplate ;
44+
45+ // ObjectMapper 초기화 및 설정
4446 this .objectMapper = new ObjectMapper ();
4547 this .objectMapper .registerModule (new JavaTimeModule ());
4648 this .objectMapper .configure (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES , false );
You can’t perform that action at this time.
0 commit comments