Skip to content
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

cotato-mange 과제 구현 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yunhacandy
Copy link

No description provided.

@yunhacandy
Copy link
Author

진도가 너무 안나가서 기훈님과 유승님과 여러 분들의 코드를 참고해서 작성했습니다.

return ResponseEntity.status(HttpStatus.CREATED).build();
}

@GetMapping("/print/part/{period}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uri 설계할 때는 동사는 넣지 않는 게 좋습니다. 왜냐면 이미 GET 요청이 자원을 가져온다는 의미를 내포하기 때문입니다.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


import java.time.LocalDate;
import java.util.Arrays;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유효성 검사를 할 땐 @validated 어노테이션을 사용할 수 있습니다.
https://kdhyo98.tistory.com/81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants