This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f-lab-dev
reviewed
May 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
병준님도 이 코드 한번 참고해보시면 좋을 것 같네요~
|
||
@Component | ||
@EnableRedisHttpSession |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 이 어노테이션을 달아주면 어떤 일이 벌어지길래 세션 저장소가 redis로 바뀌는걸까요?
- 밑에 application.properties에서도 store-type을 정해두셨는데 둘 다 꼭 필요한걸까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
springSessionRepositoryFilter빈을 찾아서 등록한 뒤 SessionRepositoryFilter에 RedisIndexedSessionRepository를 주입해 세션들이 Redis에 저장되도록 합니다.
만약 EnableRedisHttpSession 어노테이션을 사용하지 않았다면 기본적으로 Session객체로 StandardSession을 사용합니다. -
다시 확인해보니 둘다 같은 의미의 설정임으로 어노테이션으로만 설정하도록 수정하겠습니다.
f-lab-dev
previously approved these changes
May 12, 2021
dnjwm8612
previously approved these changes
May 12, 2021
phantom08266
dismissed stale reviews from dnjwm8612 and f-lab-dev
May 12, 2021 14:08
The base branch was changed.
f-lab-dev
approved these changes
May 13, 2021
dnjwm8612
approved these changes
May 13, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
세션 불일치 문제를 해결하기 위해 Redis를 이용해 Session 처리