-
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
[REFACTOR] Spring boot 2->3 migration 및 JAVA 21 도입 - #347 #350
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.
고생하셨습니다! 몇 가지 리뷰와 함께 CI/CD 통과만 해주시면 좋을 것 같아요 :)
@@ -51,19 +51,20 @@ public class S3Service { | |||
@Value("${cloud.aws.s3.uri}") | |||
private String baseURI; | |||
|
|||
private final AmazonS3 amazonS3; | |||
private AmazonS3 amazonS3; |
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.
Q. AmazonS3가 객체 변수로 들어가야하는 이유가 있을까요?
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.
P1. final로 들어가 있지 않으면 uploadDeprecated에서 NPE가 발생할 것 같아요
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.
기존의 S3service를 @PostConstruct구조로 생성되기 전에 빈으로 등록하는과정에서 오류가 발생했었습니다!
따라서 기존의 코드를 유지하되 지정되는 빈을 등록해주게 하기 위해 다음과 같이 구현하게 되었습니다!
import jakarta.persistence.Column; | ||
import jakarta.persistence.Convert; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; |
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.
P4. 와일드 카드 사용하면 좋을 것 같아요!
@@ -16,7 +16,7 @@ public class FortuneCardRepositoryImpl implements FortuneCardRepository { | |||
@Override | |||
public Optional<FortuneCard> findByRelatedUserId(final Long userId) { | |||
|
|||
QFortuneCard fortuneCard = new QFortuneCard("fortuneCard"); | |||
QFortuneCard fortuneCard = QFortuneCard.fortuneCard; |
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 Summary
🌴 Works
🌱 Related Issue
closed #347
🌵 PR 참고사항