Skip to content

양성식 sprint5 - #85

Open
seongsik-ai wants to merge 10 commits into
codeit-bootcamp-spring:mainfrom
seongsik-ai:양성식-sprint3

Hidden character warning

The head ref may contain hidden characters: "\uc591\uc131\uc2dd-sprint3"
Open

seongsik-ai wants to merge 10 commits into
codeit-bootcamp-spring:mainfrom
seongsik-ai:양성식-sprint3

Conversation

@seongsik-ai

Copy link
Copy Markdown

요구사항

기본

  • 기본 항목 1
  • 기본 항목 2

심화

  • 심화 항목 1
  • 심화 항목 2

주요 변경사항

스크린샷

image

멘토에게

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

@seongsik-ai seongsik-ai changed the title 스프린트 미션 5 양성식 양성식 sprint5 Jun 28, 2026

@jinho-yoo-jack jinho-yoo-jack left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

고생하셨습니다.
항상 기초1 문제만 진행하시고 계시네요?!
시간을 좀 더 내셔서, 끝까지 문제를 풀어보시는걸 목표로 삼아도 좋을 것 같습니다.

private final MessageService messageService;

@PostMapping
public Message create(@RequestBody CreateMessageRequest request) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Controller에서 답변할 때, ResponseEntity 클래스로 감싸서 처리를 해야 합니다.
왜 그렇게 해야하는지, 한번 찾아서 공부해보시고 수정해보시기를 권고 드립니다.

private final UserService userService;

@PostMapping
public User create(@RequestBody CreateUserRequest request) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

항상 클라이언트가 규칙을 지킨다라고 생각하시면 안됩니다.
그래서 요청 메시지에 대한 유효성 검사는 필수 입니다.


@ExceptionHandler(IllegalArgumentException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public Map<String, String> handleIllegalArgumentException(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Response 타입은 항상 DTO의 형태로 선언하는 것이 올바른 방법입니다.
아무리 오류 처리를 위한 응답 API이더라도요!

@jinho-yoo-jack

Copy link
Copy Markdown
Collaborator

n
seongsik-ai
wants to merge 5 commits into
codeit-bootcamp-spring:main
from
seongsik-ai:양성식-sprint3

베이스 브랜치가 main으로 되어 있네요! 다시 확인하시고 PR 올려주세요.

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