You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
✏️ 프론트 컨트롤러 패턴 소개
🔍 FrontController 패턴 특징
🔍 스프링 웨 MVC 와 프론트 컨트롤러
✏️ 프론트 컨트롤러 도입 - v1
V1 구조

Controller V1
🔍 인터페이스를 구현한 컨트롤러 만들기
🔍 프론트 컨트롤러 만들기
🔍 프론트 컨트롤러 분석
urlPatterns = "front-controller/v1/*" : /front-controller/v1를 포함한 하위 모든 요청은 이 서블릿에서 받아들인다./front-controller/v1,/front-controller/v1/a,/front-controller/v1/a/bJSP
실행
✏️ View 분리 - v2
모든 컨트롤러에서 뷰로 이동하는 부분에 중복이 있고, 깔끔하지 않다.

V2 구조

MyView
뷰 객체는 이후 다른 버전에서도 함께 사용하므로 패키지 위치를
frontcontroller에 두었다.🔍 컨트롤러 인터페이스 만들기
MyView.render()🔗출처
All reactions