Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR 체크사항
PR이 다음 사항을 만족하는지 확인해주세요.
PR 타입
어떤 유형의 PR인지 체크해주세요.
PR 설명
기본 HttpSession에서, 세션 저장소를 Redis로 변경
작업사항
변경로직
@EnableRedisHttpSession
: Redis를 사용한 HttpSession 저장소 사용LettuceConnectionFactory
: Redis 연결 정보 설정 (현재 localhost로 되어있고 이후 변경 필요)StringRedisSerializer()
&GenericJackson2JsonRedisSerializer()
: Key를 String으로 직렬화, Value를 JSON으로 직렬화redis-cli
,keys *
또는KEYS spring:session*
로 세션 확인server.servlet.session.cookie.secure=false
: 이후 HTTPS 적용하며 true로 변경