-
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주차] 기본과제 제출 #3
base: main
Are you sure you want to change the base?
Conversation
해킹하고 IQ 추적한거 이미 PPT 따놨습니다. |
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.
수고했숴!
|
||
private final UserService userService; | ||
|
||
@PostMapping("/user/signup") |
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.
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.
ㅋㅋㅋㅋㅋ ㅇ..이거또한 마찬가지.. 복붙의 결과입니다만 ... 제가 다시 제 코드로 바꿀게여 ,, ,, ,, ,,, 정말 좋은 지적, ,,감사합니다 노여움 푸시죠 ,,,
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.
ㅋㅋㅋㅋㅋ ㅇ..이거또한 마찬가지.. 복붙의 결과입니다만 ... 제가 다시 제 코드로 바꿀게여 ,, ,, ,, ,,, 정말 좋은 지적, ,,감사합니다 노여움 푸시죠 ,,,
한번 봐드릴게여!
@PostMapping("/user/signup") | ||
@ResponseStatus(HttpStatus.CREATED) | ||
public ApiResponseDto<UserResponseDto> create( | ||
@RequestBody @Valid final UserRequestDto request) { |
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.
final로 불변 처리 아주 좋읍니다.
regexp="(?=.*[0-9])(?=.*[a-zA-Z])(?=.*\\W)(?=\\S+$).{8,20}", | ||
message = "비밀번호는 영문 대,소문자와 숫자, 특수기호가 적어도 1개 이상씩 포함된 8자 ~ 20자의 비밀번호여야 합니다." | ||
) | ||
private final String password; |
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.
public class UserResponseDto { | ||
|
||
private Long userId; | ||
private String nickname; |
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.
정적 팩터리 메서드로 dto인스턴스를 생성하는 것 같은데, 필드에 final로 불변 처리 해주시는건 어떨까요??
아니면 혹시 final로 처리하지 않은 이유가 있으신가요?
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.
ㅇ..어.. 세미나 코드 복붙의 결과랄까요.. 제가 생각이 짧았습니다.. 다시 한 번 검토해서 제 코드로 만들어볼게요.. 하하..
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.
ㅇ..어.. 세미나 코드 복붙의 결과랄까요.. 제가 생각이 짧았습니다.. 다시 한 번 검토해서 제 코드로 만들어볼게요.. 하하..
헤헤 네네^^
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: | ||
datasource: | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
url: ${db-url} | ||
username: ${db-username} | ||
password: ${db-password} |
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.
준서 코멘트 보고 저도 yaml 파일 삭제했으여 ㅋㅋㅋㅋㅋㅋ
중요정보 처리 너무 좋습니다~
혹시 위 정보는 properties에 따로 저장하시는 걸까요, 아님 다른데인가요?
db 주소랑 비번 안 가리고 푸시해서 큰일날뻔 ~ !