-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Feat#22] FCM을 활용한 알림 시스템 구현 #23
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.
혹시 작업중이신가용 ? (WIP ?)
|
||
@Bean | ||
FirebaseMessaging firebaseMessaging() throws IOException { | ||
ClassPathResource resource = new ClassPathResource("timeet-firebase-adminsdk.json"); |
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.
firebase 설정과 관련하여 application.yml과 통합을 고려하였는데,
FirebaseApp 구현체에서 기본적으로 json 파일을 불러오는 형태를 사용하여, 해당 구현을 따랐습니다!
import java.lang.annotation.Target; | ||
import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
|
||
@Target({ElementType.PARAMETER, ElementType.ANNOTATION_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.
Spring security 관련하여
access 정보로부터 member 정보 불러올 때 가독성과 유지보수를 높이기 위해 다음과 같이 custom annotation을 사용하였는데, annotation으로 인한 side-effect나 단점이 없을지 궁금합니다
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.
코드 중복도 줄이고 정말 좋은 방법이네요!
저도 만든 어노테이션 잘 활용해보겠습니다 :)
LTGM :) |
🔗 Linked Issue
resolved: #22
🛠 개발 기능
🧩 해결 방법
/resources/timeet-firebase-adminsdk.json
파일 추가가 필요합니다.🔍 리뷰 포인트
📋 Code Review Priority Guideline