-
Notifications
You must be signed in to change notification settings - Fork 305
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
[MVC 구현하기 - 3단계] 후디(조동현) 미션 제출합니다. #297
Conversation
- 모든 컨트롤러를 애너테이션 기반으로 변경 - ModelAndView에 jspView() 정적 팩토리 메소드 추가 - 메인 페이지를 보여주는 MainController 추가 - ManualHandlerMapping 제거
|
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.
안녕하세요 후디! 작성해주신 코드 잘 작동하는 것 확인했습니다 ㅎㅎ
코드를 너무 잘 작성해주셔서 피드백 할게 많이 없네요.. 궁금한 것 몇가지만 남겨봤어요
시간이 조금 남았으니 Approve는 내일 하도록 하겠습니다!
<a class="navbar-brand ps-3" href="/index.jsp">대시보드</a> | ||
<!-- Sidebar Toggle--> | ||
<button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i class="fas fa-bars"></i></button> | ||
<head> |
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.
앗 ㅋㅋㅋ format on save 를 사용하고 있는데, HTML 수정하며 파일 전체가 포매팅 되었습니다! ㅋㅋ
@Override | ||
public void render(final Map<String, ?> model, final HttpServletRequest request, HttpServletResponse response) throws Exception { | ||
public void render(final Map<String, ?> model, final HttpServletRequest request, HttpServletResponse response) |
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.
사실 이 부분은 큰 이유는 없고, 기존 레거시 인터페이스 View
코드를 그대로 따라갔습니다!
@@ -16,6 +16,11 @@ public ModelAndView(final View view) { | |||
this.model = new HashMap<>(); | |||
} | |||
|
|||
public static ModelAndView jspView(final String viewName) { |
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.
👍
안녕하세요, 찬! 🙌
벌써 마지막 단계네요.
미션 중
마지막 단계도 잘 부탁드립니다!
지금 테스트 코드가 하나도 없는 상태인데, 리뷰 남겨주신 부분 개선하면서 추가해보도록 하겠습니다!