-
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
[week 2] 기본과제/생각과제/심화과제 #2
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.
수고하셨습니다!
System.out.println(boardList.get(boardId.intValue() - 1).toString()); | ||
|
||
return boardId + "번 게시물이 등록되었습니다!"; | ||
} |
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.
제가 자바가 익숙하지 않아서 잘 몰랐는데 말씀해주셔서 감사합니다!! :)
@Getter | ||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
public class BoardRegisterRequestDto { | ||
private String title; |
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 로 변수를 선언해주면 조금 더 데이터가 보호될 것 같아요!
return "유저 조회 성공"; | ||
} | ||
|
||
@GetMapping("user/search") |
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.
"/user/search" 가 되면 더 좋은 Rest ful URI 로 만들 수 있을 것 같아요!
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.
Restful URI에 대해서 더 공부해보겠습니당!감사합니다 :)
기본과제
2.3,4 게시물 생성,조회(게시물 내용 조회), 제목으로 게시물 검색
생각과제
https://canyon-rhythm-70f.notion.site/2-5ee558b81dc14674835370e98e1c3278