-
Couldn't load subscription status.
- Fork 0
[FEAT] 알람 클라우드 태스크 구현 #73
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: develop
Are you sure you want to change the base?
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.
Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/main/java/com/official/memento/schedule/scheduler/scheduleAlarmScheduler.java:18
- Class name 'scheduleAlarmScheduler' should be capitalized (e.g. 'ScheduleAlarmScheduler') to adhere to Java naming conventions.
public class scheduleAlarmScheduler {
| GoogleCredentials credentials = GoogleCredentials.fromStream( | ||
| new FileInputStream(System.getenv("GOOGLE_APPLICATION_CREDENTIALS") | ||
| )); |
Copilot
AI
Apr 6, 2025
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.
Consider using try-with-resources to safely manage the FileInputStream for GoogleCredentials, which will prevent potential resource leaks.
| GoogleCredentials credentials = GoogleCredentials.fromStream( | |
| new FileInputStream(System.getenv("GOOGLE_APPLICATION_CREDENTIALS") | |
| )); | |
| GoogleCredentials credentials; | |
| try (FileInputStream fis = new FileInputStream(System.getenv("GOOGLE_APPLICATION_CREDENTIALS"))) { | |
| credentials = GoogleCredentials.fromStream(fis); | |
| } |
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.
리뷰 남겼습니다.,
| //queryDsl | ||
| implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta") | ||
| annotationProcessor("com.querydsl:querydsl-apt:5.0.0:jakarta") | ||
| annotationProcessor ("jakarta.annotation:jakarta.annotation-api") | ||
| annotationProcessor ("jakarta.persistence:jakarta.persistence-api") |
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.
QueryDSL은 현재 OpenFeign에서 fork해서 계속 프로젝트 업데이트를 진행하고 있습니다~
https://github.com/OpenFeign/querydsl
해당 의존성을 사용하면 좋을 것 같아요.
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.
QueryDSL 잘 몰랐는데 신기하네요 참고해서 공부하겠습니다~
✨ Related Issue
📝 기능 구현 명세
🐥 추가적인 언급 사항
QueryDsl을 도입해봤어요. 원래 도입 이유는 한번에 여러 도메인들을 불러올때 quertDsl을 사용하려고 도입을 했던건데 다 적용하고 보니까 생각했던것 만큼 필요가 없더라구여 근데 라이브러리 버전 때문에 querryDsl을 힘겹게 적용시켰던 터라 버리기 아까워서 나중에 적용할거 그냥 적용해버렷씁니다. ㅎㅎ..
앞으로 단일 도메인 조회는 JPA 여러 도메인을 join해서 한번에 불러올땐 QuerytDsl을 쓰도록 합시다