Skip to content

Commit

Permalink
refactor: DispatcherServlet을 mvc 패키지로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
gitchannn committed Sep 25, 2023
1 parent dcee8cc commit a5ce3bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
- [x] DispatcherServlet이 아닌 뷰에서 JSP를 반환하도록 수정
- [x] REST API를 지원할 수 있도록 Json 뷰를 추가
- [x] Legacy MVC 제거
- [ ] DispatcherServlet도 app 패키지가 아닌 mvc 패키지로 이동
- [x] DispatcherServlet도 app 패키지가 아닌 mvc 패키지로 이동
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.techcourse;

import jakarta.servlet.ServletContext;
import nextstep.mvc.controller.DispatcherServlet;
import nextstep.web.WebApplicationInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.techcourse;
package nextstep.mvc.controller;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
Expand Down Expand Up @@ -34,7 +34,6 @@ public DispatcherServlet() {
@Override
public void init() {
handlerMappings.addHandlerMapping(new AnnotationHandlerMapping("com.techcourse.controller"));
handlerMappings.addHandlerMapping(new ManualHandlerMapping());

handlerAdapters.addHandlerAdapter(new HandlerExecutionHandlerAdapter());
handlerAdapters.addHandlerAdapter(new ControllerHandlerAdapter());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.techcourse;
package nextstep.mvc.controller.tobe;

import jakarta.servlet.http.HttpServletRequest;
import nextstep.mvc.HandlerMapping;
Expand Down

0 comments on commit a5ce3bd

Please sign in to comment.