-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ ๋ก๊ทธ์์ ๊ธฐ๋ฅ ๊ตฌํ #10
Conversation
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.
๋ธ๋๋ฆฌ์คํธ๋ฅผ ์ ์ฉํ ์ด์ ๊ฐ ๋ฌด์์ธ์ง ๊ถ๊ธํด์
๋ก๊ทธ์์ ํ์ ๋ ํ ํฐ์ ๋ฐ๋ก ๋ฌดํจํ ์์ผ์ ํ ํฐ์ด ํ์ทจ ๋์์ ๋ ๋ณด์ ์ ๋ฆฌ์คํฌ๋ฅผ ์ค์ฌ์ค ์ ์๋ค๊ณ ํด์ ์ฌ์ฉํ์ต๋๋ค |
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.
๋ค์์ pr ์์ฑํ์ค๋
์ด๋ค ๊ธฐ์ ์ ์ฌ์ฉํ์๊ฒ ๋๋ฉด ์ ์ฌ์ฉํ๋์ง ์๋๋ฉด ๋ค๋ฅธ ๊ธฐ์ ๊ณผ ๋น๊ตํ์์๋ ์ด์ ๋ฑ
ํ์
จ๋ ๊ณ ๋ฏผ๋ค์ ๋ฆฌ๋ทฐ๋
ธํธ์ ์ ์ด์ฃผ์๋ฉด ์ข์ ๊ฒ ๊ฐ์์
public boolean deleteBlackList(String key) { | ||
return redisBlackListTemplate.delete(key); | ||
} |
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.
์ด ๋ ๋ถ๋ถ์ ํ์๊ฐ ์์๊น ์ถ์ต๋๋ค ๋ธ๋๋ฆฌ์คํธ์์ ์ญ์ ํ๋๋ผ๋ access token์ live time์ด ์ผ๋ง ๋จ์ง ์์๊ณ RefreshToken๋ ์ญ์ ๋์๊ธฐ ๋๋ฌธ์ login์ ํ๋๊ฒ ์ข์๋ณด์ฌ์
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.
ํด๋น ๋ฉ์๋ ์ญ์ ํ์ต๋๋ค
return redisBlackListTemplate.delete(key); | ||
} | ||
|
||
public boolean hasKeyBlackList(String key) { |
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.
๋ฉ์๋๋ช ... ๋ญ๊ฐ ๊ตฌ๋ฆฝ๋๋ค
RedisTemplate<String, Object> template = new RedisTemplate<>(); | ||
template.setValueSerializer(new StringRedisSerializer()); | ||
template.setHashValueSerializer(new StringRedisSerializer()); | ||
template.setConnectionFactory(redisConnectionFactory()); |
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.
์ฌ๊ธฐ์ template.setEnableTransactionSupport(true); ํ์ ๋ค์์ Service ํด๋์ค์ @transactional ์ด๋ ธํ ์ด์ ๋ถ์ฌ์ฃผ๋๊ฒ ์ข์๋ณด์ฌ์
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.
์ถ๊ฐํ์ต๋๋ค
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.
@transaction์ Config ๋ฉ์๋๊ฐ ์๋๋ผ LogOutServiceService ํด๋์ค์ ๋ถ์ฌ์ฃผ์ธ์!
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.
์์ ํ์ต๋๋ค!
๐ก ๋ฐฐ๊ฒฝ ๋ฐ ๊ฐ์
๋ก๊ทธ์์ ๊ธฐ๋ฅ์ ๊ตฌํํ์ต๋๋ค
Resolves: #9
๐ ์์ ๋ด์ฉ
๐โโ๏ธ ๋ฆฌ๋ทฐ๋ ธํธ
๋ธ๋๋ฆฌ์คํธ๋ ์ ์ฉํด๋ณด์๋๋ฐ ์ฒ์ ์ ์ฉํด๋ณด๋๊ฑฐ๋ผ ์ฝ๋๊ฐ ์ด์ง ์ด์ํ ์๋ ์์ด์
๊ทธ ์ ์ ์ํด์ ๋ด์ฃผ์ธ์!!
โ PR ์ฒดํฌ๋ฆฌ์คํธ
.env
,๋ ธ์
,README
)"API ๊ฐ๋ฐ ์๋ฃ๋์ด์"
,"ํ๊ฒฝ๊ฐ ์ถ๊ฐ๋์์ด์"
)๐ธ ๊ธฐํ