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

4주차 미션 / 서버 2조 정서현 #31

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

hyunn522
Copy link
Member

미션 진행도(%)

95%

미션 수행 내용

ModelandView 객체 구현
Controller interface를 implement한 AbstractController 생성
Controller 구현체가 AbstractController를 상속받음에 따라 변경된 로직 구현

배운점

ModelandView를 도입한 이유가 와닿지 않았는데 스터디를 진행하면서 더 명확하게 알게 된 것 같습니다
추가 미션 내용에 따르면 response 객체를 사용하지 않고, request 객체에선 사용하는 부분들만 DispatcherServlet으로 넘김으로써 Controller에서는 비즈니스 로직 처리만 담당하게 하기 위한 것으로 이해했습니다

트러블슈팅

AddAnswerController에서 jsonView의 리턴값인 mav 객체에 addModel 메소드를 통해 answer를 set해주었다고 생각했는데
작동시켜보면 등록 직후에 제목은 {0}, 내용은 {2}로 작성됩니다
새로고침을 하면 문제가 해결되긴 하는데 왜 addModel을 통해 등록한 것이 의도대로 작동하지 않는지 잘 모르겠습니다

(resolve conflict 커밋에서 3주차 미션 내용은 지우고 4주차 qna 브랜치 내용만 남겨서 진행했습니다)

@hyunn522 hyunn522 changed the title 4주차 미션 / 2조 정서현 4주차 미션 / 서버 2조 정서현 Apr 12, 2024
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