-
Notifications
You must be signed in to change notification settings - Fork 6
✨feat: 세미나 7주차 실습 과제 완료 #95
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
base: aayeon
Are you sure you want to change the base?
Conversation
wlaud2000
left a comment
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.
구현은 잘 해주신것 같은데 yml에서 키를 못찾았다고 오류가 뜨는건 이따가 한번 같이 봐야할 것 같습니다! 고생하셨습니다!
| @GetMapping("/air/seoul") | ||
| public ResponseEntity<AirKoreaResponse> getSeoulAir() { | ||
| AirKoreaResponse result = airKoreaService.getAirQuality("서울"); | ||
| return ResponseEntity.ok(result); |
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.
응답 통일 클래스를 사용해주세요
|
|
||
| import java.util.List; | ||
|
|
||
| @Data |
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.
Data 어노테이션의 사용을 지양해주세요!
참고자료 -
https://velog.io/@penrose_15/Data%EC%97%90-%EB%8C%80%ED%95%9C-%EA%B3%A0%EC%B0%B0
| // RefreshToken 저장 (DB에 갱신) | ||
| tokenRepository.save(new Token(member.getEmail(), refreshToken)); |
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.
refresh Token을 Redis에 저장하고있는데 RDB에 또 저장 할 필요는 없어보입니다!
| host: localhost | ||
| port: 6379 | ||
| airkorea: | ||
| service-key: gC3iWj2EfzQMMLVRORT5ecvxJ370Y/4gR8N3A9miRKeMJi0SiYNqLTVyVesGQqGIREPBEB3m3CbL5TroUDTiHA== |
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.
yml을 github에 공개 시 api key를 공개하는건 위험합니다 환경변수로 설정해주시거나 gitignore 처리 해주세요!
☝️Issue Number
📌 개요
-Redis – Refresh Token 관리
-Open API
🔁 변경 사항
📸 스크린샷
👀 기타 더 이야기해볼 점