-
Notifications
You must be signed in to change notification settings - Fork 25
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
hyunn522
wants to merge
30
commits into
Konkuk-KUIT:main
Choose a base branch
from
hyunn522:hyunn522-4week
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jspf 활용
→ ajax 도입
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
미션 진행도(%)
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 브랜치 내용만 남겨서 진행했습니다)