-
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
3차 세미나 #6
base: main
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.
SignupRequest랑은 다르게 이곳에는 @NotNull(message = "이름을 입력해주세요.")
처리를 안해주신 이유가 있을까용?
import org.sopt.diary.member.domain.Member; | ||
|
||
public record SignupRequest( | ||
@NotNull(message = "이름을 입력해주세요.") |
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.
@NotBlank
가 아니라 @NotNull
로 설정하신 이유가 뭔가요?!
저는 이름에 공백도 안된다고 생각해서 @NotBlank
로 처리했는데, @NotNull
로 처리하면 뭐가 더 좋은 건가용
public Member(String username, String password, String nickname, Integer age) { | ||
this(null, username, password, nickname, age); | ||
} | ||
|
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.
이건 어디에 쓰는 거에요?! 왜 앞에 null로 하신 건가용
⭐️ Issue Number
🚩 Summary